mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 09:41:41 +00:00
wineps: Fix image bits access in PSDRV_WriteDIBPatternDict.
This commit is contained in:
parent
5d68939dfd
commit
fbfa4a3aed
|
@ -979,7 +979,7 @@ BOOL PSDRV_WriteDIBPatternDict(PHYSDEV dev, const BITMAPINFO *bmi, BYTE *bits, U
|
|||
for(y = h-1; y >= 0; y--) {
|
||||
for(x = 0; x < w/8; x++) {
|
||||
sprintf(ptr, "%02x", *(bits + x/8 + y *
|
||||
(bmi->bmiHeader.biWidth + 31) / 32 * 4));
|
||||
((bmi->bmiHeader.biWidth + 31) / 32) * 4));
|
||||
ptr += 2;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue