X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/71789654c78d0cf769a352b1889027f66e417af9..0e32fdb872d413f14da8ce045766f0e2f13e202d:/src/mac/bitmap.cpp diff --git a/src/mac/bitmap.cpp b/src/mac/bitmap.cpp index 300609dd86..a37654c059 100644 --- a/src/mac/bitmap.cpp +++ b/src/mac/bitmap.cpp @@ -246,6 +246,7 @@ wxList wxBitmapBase::sm_handlers; bool wxBitmap::CopyFromIcon(const wxIcon& icon) { Ref(icon) ; + return true; } wxBitmap::wxBitmap() @@ -593,7 +594,7 @@ wxBitmap::wxBitmap(const wxImage& image, int depth) { for (int x = 0; x < width; x++) { - if ( data[0] == image.GetMaskRed() && data[1] == image.GetMaskRed() && data[2] == image.GetMaskRed() ) + if ( data[0] == image.GetMaskRed() && data[1] == image.GetMaskGreen() && data[2] == image.GetMaskBlue() ) { SetCPixel(x,y, &white); }