projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set default encoding
[wxWidgets.git]
/
src
/
msw
/
bitmap.cpp
diff --git
a/src/msw/bitmap.cpp
b/src/msw/bitmap.cpp
index 086d47218379ac1ff59814dbe216f7eee4e328ac..3d725cfea25906239b4a3d0647767fe2b03e82c3 100644
(file)
--- a/
src/msw/bitmap.cpp
+++ b/
src/msw/bitmap.cpp
@@
-1265,7
+1265,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
// scan the bitmap for the transparent colour and set the corresponding
// pixels in the mask to BLACK and the rest to WHITE
- COLORREF maskColour =
RGB(colour.Red(), colour.Green(), colour.Blue()
);
+ COLORREF maskColour =
wxColourToPalRGB(colour
);
m_maskBitmap = (WXHBITMAP)::CreateBitmap(width, height, 1, 1, 0);
HDC srcDC = ::CreateCompatibleDC(NULL);
m_maskBitmap = (WXHBITMAP)::CreateBitmap(width, height, 1, 1, 0);
HDC srcDC = ::CreateCompatibleDC(NULL);