Dib patch from CW

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Modified files:
	graphics/x11drv		: dib.c

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



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;

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux