From c9661ca88cbe3554a455c320fe7bcdcb203823a5 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 15 Mar 2014 08:41:17 -0400 Subject: MADS: Fix off by 1 frame references in srite drawing --- engines/mads/interface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/mads/interface.cpp') 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); } -- cgit v1.2.3