From ec040488b7797a681193bf0213f306fed421bfe6 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Fri, 25 Sep 2009 00:50:51 +0000 Subject: Implement proper overflow handling in Gdi::writeRoomColor for Indy4 Amiga as described in #1294513 "FOA/Amiga: Palette problem (Regression)". svn-id: r44322 --- engines/scumm/gfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/scumm') diff --git a/engines/scumm/gfx.cpp b/engines/scumm/gfx.cpp index 0f46ac68c5..b8e40b557d 100644 --- a/engines/scumm/gfx.cpp +++ b/engines/scumm/gfx.cpp @@ -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) & 0xFF]; } -- cgit v1.2.3