aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2003-10-10 14:14:36 +0000
committerMax Horn2003-10-10 14:14:36 +0000
commit87d97ead359fbf41423cc94109bd62a434c0d19e (patch)
tree6824ab74f668311ff59f88f9b0066b6e60e3f5ce /scumm
parent251c89b0372200e0f7cd1be1299d9d3cd85160d3 (diff)
downloadscummvm-rg350-87d97ead359fbf41423cc94109bd62a434c0d19e.tar.gz
scummvm-rg350-87d97ead359fbf41423cc94109bd62a434c0d19e.tar.bz2
scummvm-rg350-87d97ead359fbf41423cc94109bd62a434c0d19e.zip
fix by hibernatus
svn-id: r10725
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 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;