[Scummvm-cvs-logs] SF.net SVN: scummvm:[54100] scummvm/trunk/engines/hugo/display.cpp
strangerke at users.sourceforge.net
strangerke at users.sourceforge.net
Sat Nov 6 10:59:07 CET 2010
Revision: 54100
http://scummvm.svn.sourceforge.net/scummvm/?rev=54100&view=rev
Author: strangerke
Date: 2010-11-06 09:59:07 +0000 (Sat, 06 Nov 2010)
Log Message:
-----------
HUGO: Implement REMAPPAL.
Palettes in H3 Win intro are now correct
Modified Paths:
--------------
scummvm/trunk/engines/hugo/display.cpp
Modified: scummvm/trunk/engines/hugo/display.cpp
===================================================================
--- scummvm/trunk/engines/hugo/display.cpp 2010-11-05 20:36:13 UTC (rev 54099)
+++ scummvm/trunk/engines/hugo/display.cpp 2010-11-06 09:59:07 UTC (rev 54100)
@@ -110,8 +110,14 @@
void Screen::remapPal(uint16 oldIndex, uint16 newIndex) {
debugC(1, kDebugDisplay, "Remap_pal(%d, %d)", oldIndex, newIndex);
- warning("STUB: Remap_pal()");
- //bminfo.bmiColors[oldIndex] = ctab[newIndex];
+ byte pal[4];
+
+ pal[0] = _vm->_palette[newIndex * 4 + 0];
+ pal[1] = _vm->_palette[newIndex * 4 + 1];
+ pal[2] = _vm->_palette[newIndex * 4 + 2];
+ pal[3] = _vm->_palette[newIndex * 4 + 3];
+
+ g_system->setPalette(pal, oldIndex, 1);
}
void Screen::savePal(Common::WriteStream *f) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list