wineps: Fix the output of indexed bitmaps in PutImage.
This commit is contained in:
parent
7df0245295
commit
dd3721c0f9
@ -680,7 +680,7 @@ BOOL PSDRV_WriteRGBQUAD(PHYSDEV dev, const RGBQUAD *rgb, int number)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
ptr = buf;
|
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,
|
ptr += sprintf(ptr, "%02x%02x%02x%c", rgb->rgbRed, rgb->rgbGreen, rgb->rgbBlue,
|
||||||
((i & 0x7) == 0x7) || (i == number - 1) ? '\n' : ' ');
|
((i & 0x7) == 0x7) || (i == number - 1) ? '\n' : ' ');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user