diff options
author | Johannes Schickel | 2009-09-25 01:00:34 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-09-25 01:00:34 +0000 |
commit | 902e0699b11095d61bae29e3ca9b9d18482fdec2 (patch) | |
tree | 0b7b3baca6136a1648badcb6afc426cf6a099b3e /engines | |
parent | ec040488b7797a681193bf0213f306fed421bfe6 (diff) | |
download | scummvm-rg350-902e0699b11095d61bae29e3ca9b9d18482fdec2.tar.gz scummvm-rg350-902e0699b11095d61bae29e3ca9b9d18482fdec2.tar.bz2 scummvm-rg350-902e0699b11095d61bae29e3ca9b9d18482fdec2.zip |
Add comment about why r44322 was needed.
svn-id: r44323
Diffstat (limited to 'engines')
-rw-r--r-- | engines/scumm/gfx.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/scumm/gfx.cpp b/engines/scumm/gfx.cpp index b8e40b557d..008dfb3793 100644 --- a/engines/scumm/gfx.cpp +++ b/engines/scumm/gfx.cpp @@ -3189,6 +3189,10 @@ void Gdi16Bit::writeRoomColor(byte *dst, byte color) const { } void Gdi::writeRoomColor(byte *dst, byte color) const { + // As described in bug #1294513 "FOA/Amiga: Palette problem (Regression)" + // the original AMIGA version of Indy4: The Fate of Atlantis allowed + // overflowing of the palette index. To have the same result in our code, + // we need to do an logical AND 0xFF here to keep the result in [0, 255]. *dst = _roomPalette[(color + _paletteMod) & 0xFF]; } |