From 818f8fe1d6b0ce696f6eeeb694e0786e958bdb97 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 20 Jul 2020 11:05:17 +0200 Subject: [PATCH] macOS: fixing wxImage generation from wxBitmap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit after https://github.com/wxWidgets/wxWidgets/commit/992b594c15dd2f6fa28f46464ea2499254ede084 the byte value for ‚masked‘ changed, adapt this accordingly, see https://trac.wxwidgets.org/ticket/18775 --- src/osx/core/bitmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osx/core/bitmap.cpp b/src/osx/core/bitmap.cpp index a5bfa63600..1249cbb008 100644 --- a/src/osx/core/bitmap.cpp +++ b/src/osx/core/bitmap.cpp @@ -1265,7 +1265,7 @@ wxImage wxBitmap::ConvertToImage() const #endif if ( hasMask ) { - if ( *maskp++ == 0xFF ) + if ( *maskp++ == 0x00 ) { r = MASK_RED ; g = MASK_GREEN ;