Dib patch from CW

Duane Clark dclark at akamail.com
Sat Jan 26 22:12:09 CST 2002


Modified files:
	graphics/x11drv		: dib.c

Log message:
	Codeweavers
	Don't fill colormap beyond end of screen depth.



-------------- next part --------------
Index: graphics/x11drv/dib.c
===================================================================
RCS file: /home/wine/wine/graphics/x11drv/dib.c,v
retrieving revision 1.84
diff -u -r1.84 dib.c
--- graphics/x11drv/dib.c	2002/01/04 18:23:17	1.84
+++ graphics/x11drv/dib.c	2002/01/27 02:18:50
@@ -137,6 +137,10 @@
 
     if (coloruse == DIB_RGB_COLORS)
     {
+	int max = 1 << depth;
+
+	if (end > max) end = max;
+
         if (quads)
         {
             RGBQUAD * rgb = (RGBQUAD *)colorPtr;


More information about the wine-patches mailing list