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:
@@ -593,7 +593,7 @@ wxBitmap::wxBitmap(const wxImage& image, int depth)
|
|||||||
{
|
{
|
||||||
for (int x = 0; x < width; x++)
|
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);
|
SetCPixel(x,y, &white);
|
||||||
}
|
}
|
||||||
|
@@ -593,7 +593,7 @@ wxBitmap::wxBitmap(const wxImage& image, int depth)
|
|||||||
{
|
{
|
||||||
for (int x = 0; x < width; x++)
|
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);
|
SetCPixel(x,y, &white);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user