From: Unknown (AN) Date: Thu, 10 Dec 1998 22:41:43 +0000 (+0000) Subject: correct a bug in the MSW code using wxMask X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/650368d057896c5bf6b1f2294766e92b7dbb7f20 correct a bug in the MSW code using wxMask git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/image.cpp b/src/common/image.cpp index 77a40d50db..142eed198a 100644 --- a/src/common/image.cpp +++ b/src/common/image.cpp @@ -1107,28 +1107,28 @@ wxBitmap wxImage::ConvertToBitmap() const for( int i=0; iSetMaskBitmap( (WXHBITMAP) hbitmap ); + bitmap.SetMask( mask ); /* The following can also be used but is slow to run wxColour colour( GetMaskRed(), GetMaskGreen(), GetMaskBlue()); - wxMask bmpmask( bitmap, colour ); - bitmap.SetMask( &bmpmask ); + wxMask *mask = new wxMask( bitmap, colour ); + bitmap.SetMask( mask ); */ }