Alexandre Julliard : wineps: Fix the output of indexed bitmaps in PutImage.
Alexandre Julliard
julliard at winehq.org
Mon Oct 31 12:49:03 CDT 2011
Module: wine
Branch: master
Commit: dd3721c0f99dc0becc26674adfcd22cfff17c58e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=dd3721c0f99dc0becc26674adfcd22cfff17c58e
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Oct 28 23:04:53 2011 +0200
wineps: Fix the output of indexed bitmaps in PutImage.
---
dlls/wineps.drv/ps.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wineps.drv/ps.c b/dlls/wineps.drv/ps.c
index 7b8a0bf..4b70f79 100644
--- a/dlls/wineps.drv/ps.c
+++ b/dlls/wineps.drv/ps.c
@@ -680,7 +680,7 @@ BOOL PSDRV_WriteRGBQUAD(PHYSDEV dev, const RGBQUAD *rgb, int number)
int i;
ptr = buf;
- for(i = 0; i < number; i++)
+ for(i = 0; i < number; i++, rgb++)
ptr += sprintf(ptr, "%02x%02x%02x%c", rgb->rgbRed, rgb->rgbGreen, rgb->rgbBlue,
((i & 0x7) == 0x7) || (i == number - 1) ? '\n' : ' ');
More information about the wine-cvs
mailing list