aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/interface.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-03-15 08:41:17 -0400
committerPaul Gilbert2014-03-15 08:41:17 -0400
commitc9661ca88cbe3554a455c320fe7bcdcb203823a5 (patch)
tree8330ec65534da44ddb7b12fa9afd8605a7c39be2 /engines/mads/interface.cpp
parent37bb5150d0d2c901b9bb88ec009a348f1de3d5b0 (diff)
downloadscummvm-rg350-c9661ca88cbe3554a455c320fe7bcdcb203823a5.tar.gz
scummvm-rg350-c9661ca88cbe3554a455c320fe7bcdcb203823a5.tar.bz2
scummvm-rg350-c9661ca88cbe3554a455c320fe7bcdcb203823a5.zip
MADS: Fix off by 1 frame references in srite drawing
Diffstat (limited to 'engines/mads/interface.cpp')
-rw-r--r--engines/mads/interface.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/mads/interface.cpp b/engines/mads/interface.cpp
index 0c983dc133..8ea8913b69 100644
--- a/engines/mads/interface.cpp
+++ b/engines/mads/interface.cpp
@@ -53,9 +53,9 @@ void InterfaceSurface::load(const Common::String &resName) {
byte *palP = &_vm->_palette->_mainPalette[0];
for (int i = 0; i < 16; ++i, gamePalP++, palP += 3) {
- palP[0] = palStream->readByte();
- palP[1] = palStream->readByte();
- palP[2] = palStream->readByte();
+ palP[0] = VGA_COLOR_TRANS(palStream->readByte());
+ palP[1] = VGA_COLOR_TRANS(palStream->readByte());
+ palP[2] = VGA_COLOR_TRANS(palStream->readByte());
*gamePalP |= 1;
palStream->skip(3);
}