corrected a bug in the masking code

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2001-08-11 09:43:26 +00:00
parent d45fb985c4
commit 2af9ef13a7
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
}

View File

@@ -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);
}