psdrv: bitmap fix
Huw D M Davies
h.davies1 at physics.ox.ac.uk
Tue Nov 30 10:41:53 CST 2004
Huw Davies <huw at codeweavers.com>
For a 15/16 bpp dib we send RGB triples to the printer so the
size multiplier is 3 not 2.
--
Huw Davies
huw at codeweavers.com
Index: dlls/wineps/bitmap.c
===================================================================
RCS file: /home/wine/wine/dlls/wineps/bitmap.c,v
retrieving revision 1.12
diff -u -p -r1.12 bitmap.c
--- dlls/wineps/bitmap.c 2 Nov 2004 19:25:51 -0000 1.12
+++ dlls/wineps/bitmap.c 30 Nov 2004 17:35:33 -0000
@@ -320,7 +320,7 @@ INT PSDRV_StretchDIBits( PSDRV_PDEVICE *
src_ptr = bits;
src_ptr += (ySrc * widthbytes);
- bitmap_size = heightSrc * widthSrc * 2;
+ bitmap_size = heightSrc * widthSrc * 3;
dst_ptr = bitmap = HeapAlloc(GetProcessHeap(), 0, bitmap_size);
for(line = 0; line < heightSrc; line++, src_ptr += widthbytes) {
More information about the wine-patches
mailing list