correct bitmap construction (including mask) from image
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -592,7 +592,7 @@ wxBitmap::wxBitmap(const wxImage& image, int depth)
|
||||
|
||||
// Create mask
|
||||
if ( image.HasMask() ) {
|
||||
// SetMask(new wxMask( maskBitmap ));
|
||||
SetMask(new wxMask( maskBitmap ));
|
||||
}
|
||||
|
||||
UnlockPixels( GetGWorldPixMap(GetHBITMAP()) );
|
||||
|
Reference in New Issue
Block a user