X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/68f36a2ca14a0005874f3343391f85f4aa084f99..abfcca57dd0d805ceec9e19c4be207614d79252a:/src/msw/bitmap.cpp diff --git a/src/msw/bitmap.cpp b/src/msw/bitmap.cpp index 4f60c09474..c4b2b8bed5 100644 --- a/src/msw/bitmap.cpp +++ b/src/msw/bitmap.cpp @@ -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);