aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2003-10-12 12:03:17 +0000
committerTravis Howell2003-10-12 12:03:17 +0000
commit44459154031a46682014052b42e65b2131dd930a (patch)
tree749b7c6fabd86106af5ac173259881727549975b /scumm
parent5645fa4266624151b4cc05d893c7d177f84c0416 (diff)
downloadscummvm-rg350-44459154031a46682014052b42e65b2131dd930a.tar.gz
scummvm-rg350-44459154031a46682014052b42e65b2131dd930a.tar.bz2
scummvm-rg350-44459154031a46682014052b42e65b2131dd930a.zip
Missed two spots
svn-id: r10740
Diffstat (limited to 'scumm')
-rw-r--r--scumm/gfx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index 4da336a8b4..0202840b05 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -1795,7 +1795,7 @@ void Gdi::unkDecodeA(byte *dst, const byte *src, int height) {
if (!--height)
return;
}
- *dst++ = color + _palette_mod;
+ *dst++ = (_vm->_features & GF_SMALL_HEADER) ? _vm->_roomPalette[color + _palette_mod] : color + _palette_mod;
} while (--reps);
bits >>= 8;
bits |= (*src++) << (cl - 8);
@@ -1846,7 +1846,7 @@ void Gdi::unkDecodeA_trans(byte *dst, const byte *src, int height) {
return;
}
if (color != _transparentColor)
- *dst = color + _palette_mod;
+ *dst = (_vm->_features & GF_SMALL_HEADER) ? _vm->_roomPalette[color + _palette_mod] : color + _palette_mod;
dst++;
} while (--reps);
bits >>= 8;