Use the original image to check for a mask, not the one that may have had the mask converted to alpha
This commit is contained in:
@@ -1187,8 +1187,8 @@ wxBitmap::wxBitmap(const wxImage& image, int depth, double scale)
|
|||||||
|
|
||||||
GetBitmapData()->EndRawAccess() ;
|
GetBitmapData()->EndRawAccess() ;
|
||||||
}
|
}
|
||||||
if ( img.HasMask() )
|
if ( image.HasMask() )
|
||||||
SetMask(new wxMask(*this, wxColour(img.GetMaskRed(), img.GetMaskGreen(), img.GetMaskBlue())));
|
SetMask(new wxMask(*this, wxColour(image.GetMaskRed(), image.GetMaskGreen(), image.GetMaskBlue())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user