Fix bitmap tests with GTK2
wxGTK2 does not support drawing bitmaps with both alpha and a mask, so it doesn't bother to implement having both. So skip the test for that case.
This commit is contained in:
@@ -307,6 +307,7 @@ TEST_CASE("BitmapTestCase::FromImage", "[bitmap][image][convertfrom]")
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(__WXGTK20__) || defined(__WXGTK3__)
|
||||||
SECTION("RGBA image with mask")
|
SECTION("RGBA image with mask")
|
||||||
{
|
{
|
||||||
wxImage img(2, 2);
|
wxImage img(2, 2);
|
||||||
@@ -368,6 +369,7 @@ TEST_CASE("BitmapTestCase::FromImage", "[bitmap][image][convertfrom]")
|
|||||||
rowStartMask.OffsetY(dataMask, 1);
|
rowStartMask.OffsetY(dataMask, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif // !defined(__WXGTK20__) || defined(__WXGTK3__)
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("BitmapTestCase::OverlappingBlit", "[bitmap][blit]")
|
TEST_CASE("BitmapTestCase::OverlappingBlit", "[bitmap][blit]")
|
||||||
|
Reference in New Issue
Block a user