[Scummvm-cvs-logs] scummvm master -> 02e51f9de5ab01956a0fd162607d981073a85005

Strangerke arnaud.boutonne at gmail.com
Sun Feb 27 11:10:33 CET 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
02e51f9de5 HUGO: Set all the palette instead of only one color in remapPal.


Commit: 02e51f9de5ab01956a0fd162607d981073a85005
    https://github.com/scummvm/scummvm/commit/02e51f9de5ab01956a0fd162607d981073a85005
Author: strangerke (arnaud.boutonne at gmail.com)
Date: 2011-02-27T02:10:09-08:00

Commit Message:
HUGO: Set all the palette instead of only one color in remapPal.

This fixes the palette issue after the cave in H3

Changed paths:
    engines/hugo/display.cpp



diff --git a/engines/hugo/display.cpp b/engines/hugo/display.cpp
index f9b8923..aa4d438 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);
 }
 
 /**






More information about the Scummvm-git-logs mailing list