From 4a3ff8c180949abccad900b6ed802c43343bdeab Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Tue, 19 Jan 2021 01:35:28 -0800 Subject: [PATCH] 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. --- tests/graphics/bitmap.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/graphics/bitmap.cpp b/tests/graphics/bitmap.cpp index ac9b9ec071..1ad14d697e 100644 --- a/tests/graphics/bitmap.cpp +++ b/tests/graphics/bitmap.cpp @@ -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]")