aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorJohannes Schickel2009-09-25 00:31:46 +0000
committerJohannes Schickel2009-09-25 00:31:46 +0000
commit506fceeb9d63833cc62dbc3a6061a1d5aa84cd78 (patch)
treeb7d3346aa32221943a9b4c677a4c12bff7c7aada /engines/scumm
parent10b63492917d8811f5af83da84d4e4cfbb78c00c (diff)
downloadscummvm-rg350-506fceeb9d63833cc62dbc3a6061a1d5aa84cd78.tar.gz
scummvm-rg350-506fceeb9d63833cc62dbc3a6061a1d5aa84cd78.tar.bz2
scummvm-rg350-506fceeb9d63833cc62dbc3a6061a1d5aa84cd78.zip
Attempt to fix bug #2838205 "MONKEY: Palette glitches in Amiga version" as described on the tracker item.
svn-id: r44321
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/gfx.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/scumm/gfx.cpp b/engines/scumm/gfx.cpp
index fd298c2980..0f46ac68c5 100644
--- a/engines/scumm/gfx.cpp
+++ b/engines/scumm/gfx.cpp
@@ -2754,7 +2754,7 @@ void Gdi::drawStripEGA(byte *dst, int dstPitch, const byte *src, int height) con
run = *src++;
}
for (z = 0; z < run; z++) {
- *(dst + y * dstPitch + x) = (z & 1) ? _roomPalette[color & 0xf] + _paletteMod : _roomPalette[color >> 4] + _paletteMod;
+ *(dst + y * dstPitch + x) = (z & 1) ? _roomPalette[(color & 0xf) + _paletteMod] : _roomPalette[(color >> 4) + _paletteMod];
y++;
if (y >= height) {
@@ -2784,7 +2784,7 @@ void Gdi::drawStripEGA(byte *dst, int dstPitch, const byte *src, int height) con
}
for (z = 0; z < run; z++) {
- *(dst + y * dstPitch + x) = _roomPalette[color & 0xf] + _paletteMod;
+ *(dst + y * dstPitch + x) = _roomPalette[(color & 0xf) + _paletteMod];
y++;
if (y >= height) {
@@ -3189,7 +3189,7 @@ void Gdi16Bit::writeRoomColor(byte *dst, byte color) const {
}
void Gdi::writeRoomColor(byte *dst, byte color) const {
- *dst = _roomPalette[color] + _paletteMod;
+ *dst = _roomPalette[color + _paletteMod];
}