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:
Paul Cornett
2021-01-19 01:35:28 -08:00
parent cea8e60dea
commit 4a3ff8c180

View File

@@ -307,6 +307,7 @@ TEST_CASE("BitmapTestCase::FromImage", "[bitmap][image][convertfrom]")
}
}
#if !defined(__WXGTK20__) || defined(__WXGTK3__)
SECTION("RGBA image with mask")
{
wxImage img(2, 2);
@@ -368,6 +369,7 @@ TEST_CASE("BitmapTestCase::FromImage", "[bitmap][image][convertfrom]")
rowStartMask.OffsetY(dataMask, 1);
}
}
#endif // !defined(__WXGTK20__) || defined(__WXGTK3__)
}
TEST_CASE("BitmapTestCase::OverlappingBlit", "[bitmap][blit]")