aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/gfx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index 18213eadf6..4da336a8b4 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -2072,7 +2072,7 @@ void Gdi::unkDecode9(byte *dst, const byte *src, int height) {
color += bits << i;
}
for (i = 0; i < ((c & 3) + 2); i++) {
- *dst = (run * 16 + _vm->_roomPalette[color]);
+ *dst = _vm->_roomPalette[run * 16 + color];
NEXT_ROW;
}
break;
@@ -2084,7 +2084,7 @@ void Gdi::unkDecode9(byte *dst, const byte *src, int height) {
READ_256BIT;
color += bits << j;
}
- *dst = (run * 16 + _vm->_roomPalette[color]);
+ *dst = _vm->_roomPalette[run * 16 + color];
NEXT_ROW;
}
break;