Implement proper overflow handling in Gdi::writeRoomColor for Indy4 Amiga as described in #1294513 "FOA/Amiga: Palette problem (Regression)".

svn-id: r44322
This commit is contained in:
Johannes Schickel 2009-09-25 00:50:51 +00:00
parent 506fceeb9d
commit ec040488b7

View file

@ -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];
}