X11DRV_DIB_SetImageBits_RLE8

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Wed Oct 3 09:21:07 CDT 2001


Hallo,

some programs may provide a source bitmap wider then the target (e.g
catalog.exe for the RS-Components semiconductor CD).

Changelog:
	graphics/x11drv/dib.c : X11DRV_DIB_SetImageBits_RLE8
	Ignore supplus data from source bitmap wider then the target

Bye

Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Free Software: If you contribute nothing, expect nothing
--
Index: wine/graphics/x11drv/dib.c
===================================================================
RCS file: /home/wine/wine/graphics/x11drv/dib.c,v
retrieving revision 1.79
diff -u -r1.79 dib.c
--- wine/graphics/x11drv/dib.c	7 Sep 2001 19:47:10 -0000	1.79
+++ wine/graphics/x11drv/dib.c	3 Oct 2001 14:19:14 -0000
@@ -1330,12 +1330,10 @@
 
 		while(length--)
 		  {
-		    if (x>=dstwidth)
-		      {
-			x=0;
-			line--;
-		      }
-		    XPutPixel(bmpImage, x++, line, color);
+		    if (x < dstwidth)
+		      /*The source bitmap may be wider than the target. 
+			Just ignore the surplus values (Bo 000907)*/
+		      XPutPixel(bmpImage, x++, line, color);
 		  }
 	    }
 	  else 




More information about the wine-patches mailing list