X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/71789654c78d0cf769a352b1889027f66e417af9..dbcbe229628c7667da2b6257198467d4f09ab28d:/src/mac/carbon/bitmap.cpp?ds=sidebyside diff --git a/src/mac/carbon/bitmap.cpp b/src/mac/carbon/bitmap.cpp index 300609dd86..a37654c059 100644 --- a/src/mac/carbon/bitmap.cpp +++ b/src/mac/carbon/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); }