From 02e51f9de5ab01956a0fd162607d981073a85005 Mon Sep 17 00:00:00 2001 From: strangerke Date: Sun, 27 Feb 2011 11:10:09 +0100 Subject: HUGO: Set all the palette instead of only one color in remapPal. This fixes the palette issue after the cave in H3 --- engines/hugo/display.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines/hugo/display.cpp') 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); } /** -- cgit v1.2.3