aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/hugo/display.cpp4
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);
}
/**