Add checks to BitmapBundle::FromSVG-alpha test to catch lack of SVG premultiply.

This commit is contained in:
Tim Eliseo 2023-11-28 13:36:06 -08:00
parent d21d54b42f
commit 06e3e26ead

View file

@ -395,7 +395,9 @@ TEST_CASE("BitmapBundle::FromSVG-alpha", "[bmpbundle][svg][alpha]")
// premultiplied storage in wxBitmap) to substantially original straight
// alpha pixel values in wxImage, allowing for roundoff error.
CHECK( (int)img.GetRed(0, 1) >= 0x3c );
CHECK( (int)img.GetRed(0, 1) <= 0x3f );
CHECK( (int)img.GetGreen(0, 1) >= 0x7c );
CHECK( (int)img.GetGreen(0, 1) <= 0x7f);
CHECK( (int)img.GetBlue(0, 1) == 0xff );
}