diff options
author | Norbert Lange | 2009-08-08 09:49:28 +0000 |
---|---|---|
committer | Norbert Lange | 2009-08-08 09:49:28 +0000 |
commit | 4e7b156e1094f0edee51d51069dc394af6bb0257 (patch) | |
tree | 7f5061a346baaf8ce8f7b3e70901d606f1dbf761 /engines/scumm | |
parent | 6dbeddab258b5b681586e4e6996acfc3f2cce2be (diff) | |
download | scummvm-rg350-4e7b156e1094f0edee51d51069dc394af6bb0257.tar.gz scummvm-rg350-4e7b156e1094f0edee51d51069dc394af6bb0257.tar.bz2 scummvm-rg350-4e7b156e1094f0edee51d51069dc394af6bb0257.zip |
fix a bug that prevented gcc from compiling
correctly added my palette patch (it showed up in the rev-changes but dint got applied fully to the svn tree?)
svn-id: r43116
Diffstat (limited to 'engines/scumm')
-rw-r--r-- | engines/scumm/palette.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/engines/scumm/palette.cpp b/engines/scumm/palette.cpp index 5b0183f47f..1b531f6bab 100644 --- a/engines/scumm/palette.cpp +++ b/engines/scumm/palette.cpp @@ -201,8 +201,13 @@ void ScummEngine::setPaletteFromPtr(const byte *ptr, int numcolor) { assertRange(0, numcolor, 256, "setPaletteFromPtr: numcolor"); dest = _currentPalette; + if ((_game.platform == Common::kPlatformAmiga) && _game.version == 4 && _renderMode != Common::kRenderEGA) { + firstIndex = 16; + dest += 3 * 16; + ptr += 3 * 16; + } - for (i = 0; i < numcolor; i++) { + for (i = firstIndex; i < numcolor; i++) { r = *ptr++; g = *ptr++; b = *ptr++; @@ -227,7 +232,7 @@ void ScummEngine::setPaletteFromPtr(const byte *ptr, int numcolor) { memcpy(_darkenPalette, _currentPalette, 768); } - setDirtyColors(0, numcolor - 1); + setDirtyColors(firstIndex, numcolor - 1); } void ScummEngine::setDirtyColors(int min, int max) { |