]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed wxMask::Create(bitmap,colour)
authorMattia Barbon <mbarbon@cpan.org>
Tue, 30 Oct 2001 20:52:35 +0000 (20:52 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Tue, 30 Oct 2001 20:52:35 +0000 (20:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/bitmap.cpp

index 4f60c09474625650595524649c82711d1a84afd1..c4b2b8bed5bf34724daf510fe1c60d47df11f32d 100644 (file)
@@ -1087,7 +1087,7 @@ bool wxMask::Create(const wxBitmap& bitmap, const wxColour& colour)
 
     // scan the bitmap for the transparent colour and set the corresponding
     // pixels in the mask to BLACK and the rest to WHITE
-    COLORREF maskColour = wxColourToRGB(colour);
+    COLORREF maskColour = RGB(colour.Red(), colour.Green(), colour.Blue());
     m_maskBitmap = (WXHBITMAP)::CreateBitmap(width, height, 1, 1, 0);
 
     HDC srcDC = ::CreateCompatibleDC(NULL);