Fix converting wxImage with alpha channel and mask to wxBitmap (wxGTK2)

Since f7247086c2 ("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:
Artur Wieczorek
2021-04-08 00:03:10 +02:00
parent c97bec76b8
commit 5e8bb6f2e7
2 changed files with 21 additions and 2 deletions

View File

@@ -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]")