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:
parent
506fceeb9d
commit
ec040488b7
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue