macOS: fixing wxImage generation from wxBitmap

after 992b594c15 the byte value for ‚masked‘ changed, adapt this accordingly, see https://trac.wxwidgets.org/ticket/18775
This commit is contained in:
Stefan Csomor
2020-07-20 11:05:17 +02:00
parent 70659b6b7c
commit 818f8fe1d6

View File

@@ -1265,7 +1265,7 @@ wxImage wxBitmap::ConvertToImage() const
#endif
if ( hasMask )
{
if ( *maskp++ == 0xFF )
if ( *maskp++ == 0x00 )
{
r = MASK_RED ;
g = MASK_GREEN ;