aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
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];
}