24bpp DIB color masks fix
François Gouget
fgouget at codeweavers.com
Wed Oct 31 17:58:46 CST 2001
Changelog:
François Gouget <fgouget at codeweavers.com>
* graphics/x11drv/dib.c
Correctly initialize the color masks of 24bpp DIBs
--
François Gouget
fgouget at codeweavers.com
-------------- next part --------------
Index: graphics/x11drv/dib.c
===================================================================
RCS file: /home/wine/wine/graphics/x11drv/dib.c,v
retrieving revision 1.81
diff -u -r1.81 dib.c
--- graphics/x11drv/dib.c 2001/10/17 19:41:54 1.81
+++ graphics/x11drv/dib.c 2001/10/31 00:21:04
@@ -4644,10 +4645,6 @@
break;
case 24:
- descr.rMask = descr.gMask = descr.bMask = 0;
- descr.colorMap = 0;
- break;
-
case 32:
descr.rMask = (descr.compression == BI_BITFIELDS) ? *(DWORD *)info->bmiColors : 0xff0000;
descr.gMask = (descr.compression == BI_BITFIELDS) ? *((DWORD *)info->bmiColors + 1) : 0x00ff00;
@@ -4729,10 +4726,6 @@
break;
case 24:
- descr.rMask = descr.gMask = descr.bMask = 0;
- descr.colorMap = 0;
- break;
-
case 32:
descr.rMask = (descr.compression == BI_BITFIELDS) ? *(DWORD *)info->bmiColors : 0xff0000;
descr.gMask = (descr.compression == BI_BITFIELDS) ? *((DWORD *)info->bmiColors + 1) : 0x00ff00;
More information about the wine-patches
mailing list