Fix converting wxImage with alpha channel and mask to wxBitmap (wxGTK2)
Sincef7247086c2
("Fix storing wxBitmap data in GdkPixbuf", 2019-09-18),919a4ec702
("Fix drawing wxBitmap with mask", 2019-09-18) and other commits (see #18498, #18508) RGBA wxBitmaps with masks are drawn properly under wxGTK2 so if source wxImage has both alpha channel and a mask the target wxBitmap also should have both components.
This commit is contained in:
@@ -557,7 +557,6 @@ TEST_CASE("BitmapTestCase::FromImage", "[bitmap][image][convertfrom]")
|
||||
}
|
||||
}
|
||||
|
||||
#if !defined(__WXGTK20__) || defined(__WXGTK3__)
|
||||
SECTION("RGBA image with mask")
|
||||
{
|
||||
wxImage img(2, 2);
|
||||
@@ -619,7 +618,6 @@ TEST_CASE("BitmapTestCase::FromImage", "[bitmap][image][convertfrom]")
|
||||
rowStartMask.OffsetY(dataMask, 1);
|
||||
}
|
||||
}
|
||||
#endif // !defined(__WXGTK20__) || defined(__WXGTK3__)
|
||||
}
|
||||
|
||||
TEST_CASE("BitmapTestCase::OverlappingBlit", "[bitmap][blit]")
|
||||
|
Reference in New Issue
Block a user