]> git.saurik.com Git - wxWidgets.git/commitdiff
Solved a typo related to masks. Was setting *all* pixels in the mask
authorGuillermo Rodriguez Garcia <guille@iies.es>
Fri, 18 Feb 2000 16:10:11 +0000 (16:10 +0000)
committerGuillermo Rodriguez Garcia <guille@iies.es>
Fri, 18 Feb 2000 16:10:11 +0000 (16:10 +0000)
to rgb(0,0,0) - hence no mask at all :-) Corrected related OS/2 code
as well (this is where the typo was introduced in the first place)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/xpm/create.c

index bef4c7963c8182e7247d8872a8fd53ec426f0ebc..1105c1fb3d3dde94aafc00c75d0f47da81a292f1 100644 (file)
@@ -563,9 +563,9 @@ SetColor(display, colormap, visual, colorname, color_index,
        *mask_pixel = 0;
 #else
 #ifdef __OS2__
-       *mask_pixel = OS2RGB(0,0,0);
+    *mask_pixel = OS2RGB(255,255,255);
 #else
-       *mask_pixel = RGB(0,0,0);
+    *mask_pixel = RGB(255,255,255);
 #endif
 #endif
        /* store the color table index */