mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-05 02:17:05 +00:00
NGI: Fix endianness in RB picture decompression
This commit is contained in:
parent
b484752e6e
commit
ba580538fb
@ -815,19 +815,19 @@ bool Bitmap::putDibRB(byte *pixels, const Palette &palette) {
|
||||
for (y = endy; y >= starty && !breakup; y--) {
|
||||
x = startx;
|
||||
|
||||
while ((pixel = *srcPtr++) != 0) {
|
||||
while ((pixel = FROM_LE_16(*srcPtr++)) != 0) {
|
||||
if (pixel == 0x100) {
|
||||
breakup = true;
|
||||
break;
|
||||
}
|
||||
|
||||
while (pixel == 0x200 && y >= starty) {
|
||||
uint16 value = *srcPtr++;
|
||||
uint16 value = FROM_LE_16(*srcPtr++);
|
||||
|
||||
x += (byte)(value & 0xff);
|
||||
y -= (byte)((value >> 8) & 0xff);
|
||||
|
||||
pixel = *srcPtr++;
|
||||
pixel = FROM_LE_16(*srcPtr++);
|
||||
}
|
||||
|
||||
if (y < starty || pixel == 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user