diff --git a/src/mac/bitmap.cpp b/src/mac/bitmap.cpp index 300609dd86..2e85e12323 100644 --- a/src/mac/bitmap.cpp +++ b/src/mac/bitmap.cpp @@ -593,7 +593,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); } diff --git a/src/mac/carbon/bitmap.cpp b/src/mac/carbon/bitmap.cpp index 300609dd86..2e85e12323 100644 --- a/src/mac/carbon/bitmap.cpp +++ b/src/mac/carbon/bitmap.cpp @@ -593,7 +593,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); }