aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorJonathan Gray2003-07-06 10:01:23 +0000
committerJonathan Gray2003-07-06 10:01:23 +0000
commitf12d23f84615c0c29f2cf4e57d6e883d0d533819 (patch)
tree14768bb6be68c954bcdbaea1bda2fad7b2a5deae /scumm
parentdc705c04e160ed5c5c92a08de996071079b065d7 (diff)
downloadscummvm-rg350-f12d23f84615c0c29f2cf4e57d6e883d0d533819.tar.gz
scummvm-rg350-f12d23f84615c0c29f2cf4e57d6e883d0d533819.tar.bz2
scummvm-rg350-f12d23f84615c0c29f2cf4e57d6e883d0d533819.zip
correct palette on amiga version of mi, from Hibernatus
svn-id: r8797
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 034717f690..310dbcb4b4 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -1432,7 +1432,7 @@ void Gdi::decodeStripEGA(byte *dst, const byte *src, int height) {
run = *src++;
}
for (z = 0; z < run; z++) {
- *(dst + y * _vm->_screenWidth + x) = (z&1) ? (color & 0xf) : (color >> 4);
+ *(dst + y * _vm->_screenWidth + x) = (z&1) ? ((color & 0xf) + _palette_mod) : ((color >> 4) + _palette_mod);
y++;
if (y >= height) {
@@ -1462,7 +1462,7 @@ void Gdi::decodeStripEGA(byte *dst, const byte *src, int height) {
}
for (z = 0; z < run; z++) {
- *(dst + y * _vm->_screenWidth + x) = color & 0xf;
+ *(dst + y * _vm->_screenWidth + x) = (color & 0xf) + _palette_mod;
y++;
if (y >= height) {