diff options
author | strangerke | 2011-02-27 11:10:09 +0100 |
---|---|---|
committer | strangerke | 2011-02-27 11:10:09 +0100 |
commit | 02e51f9de5ab01956a0fd162607d981073a85005 (patch) | |
tree | 176cffa919cda1e5737664d22db9aff489ad6f98 | |
parent | aa2a2e046b0a5979709c79deb84b6eea3c8f09d5 (diff) | |
download | scummvm-rg350-02e51f9de5ab01956a0fd162607d981073a85005.tar.gz scummvm-rg350-02e51f9de5ab01956a0fd162607d981073a85005.tar.bz2 scummvm-rg350-02e51f9de5ab01956a0fd162607d981073a85005.zip |
HUGO: Set all the palette instead of only one color in remapPal.
This fixes the palette issue after the cave in H3
-rw-r--r-- | engines/hugo/display.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/hugo/display.cpp b/engines/hugo/display.cpp index f9b892397c..aa4d4384c1 100644 --- a/engines/hugo/display.cpp +++ b/engines/hugo/display.cpp @@ -189,13 +189,13 @@ void Screen::displayRect(const int16 x, const int16 y, const int16 dx, const int * Alse save the new color in the current palette. */ void Screen::remapPal(const uint16 oldIndex, const uint16 newIndex) { - debugC(1, kDebugDisplay, "Remap_pal(%d, %d)", oldIndex, newIndex); + debugC(1, kDebugDisplay, "RemapPal(%d, %d)", oldIndex, newIndex); _curPalette[3 * oldIndex + 0] = _mainPalette[newIndex * 3 + 0]; _curPalette[3 * oldIndex + 1] = _mainPalette[newIndex * 3 + 1]; _curPalette[3 * oldIndex + 2] = _mainPalette[newIndex * 3 + 2]; - g_system->getPaletteManager()->setPalette(_curPalette, oldIndex, 1); + g_system->getPaletteManager()->setPalette(_curPalette, 0, _paletteSize / 3); } /** |