mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
884d8b14ac
Since the color interpolation requires two pixels in the horizontal and vertical direction to work, 1 pixel wide or high bitmaps would cause a crash when scaling. Fix this by clamping the index into the valid range. Fixes #16047.
17 lines
398 B
CMake
17 lines
398 B
CMake
set(TEST_SOURCES
|
|
BenchmarkGfxPainter.cpp
|
|
BenchmarkJPEGLoader.cpp
|
|
TestDeltaE.cpp
|
|
TestFontHandling.cpp
|
|
TestGfxBitmap.cpp
|
|
TestICCProfile.cpp
|
|
TestImageDecoder.cpp
|
|
TestRect.cpp
|
|
TestScalingFunctions.cpp
|
|
)
|
|
|
|
foreach(source IN LISTS TEST_SOURCES)
|
|
serenity_test("${source}" LibGfx LIBS LibGfx)
|
|
endforeach()
|
|
|
|
install(DIRECTORY test-inputs DESTINATION usr/Tests/LibGfx)
|