mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
X11DRV_DIB_SetImageBits_24/32: Fix the case for bits_per_pixel == 32
and negative lines.
This commit is contained in:
parent
9e61c1cc9b
commit
63ec7daa69
1 changed files with 2 additions and 2 deletions
|
@ -936,7 +936,7 @@ static void X11DRV_DIB_SetImageBits_24( int lines, const BYTE *srcbits,
|
|||
}
|
||||
} else {
|
||||
lines = -lines;
|
||||
imageBits = (BYTE *)(bmpImage->data + (lines - 1)*bmpImage->bytes_per_line);
|
||||
imageBits = (BYTE *)(bmpImage->data);
|
||||
for (h = 0; h < lines; h++) {
|
||||
for (x = left; x < dstwidth; x++, bits += 3) {
|
||||
imageBits[(x << 2) + indA] = 0x00;
|
||||
|
@ -1094,7 +1094,7 @@ static void X11DRV_DIB_SetImageBits_32( int lines, const BYTE *srcbits,
|
|||
}
|
||||
} else {
|
||||
lines = -lines;
|
||||
imageBits = (BYTE *)(bmpImage->data + (lines - 1)*bmpImage->bytes_per_line);
|
||||
imageBits = (BYTE *)(bmpImage->data);
|
||||
for (h = 0; h < lines; h++) {
|
||||
for (x = left; x < dstwidth; x++, bits += 4) {
|
||||
imageBits[(x << 2) + indA] = 0x00;
|
||||
|
|
Loading…
Reference in a new issue