aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo
diff options
context:
space:
mode:
authorArnaud Boutonné2010-11-06 09:59:07 +0000
committerArnaud Boutonné2010-11-06 09:59:07 +0000
commit1da44acae34cf678d43c0fa17f6d8a84aea3b22e (patch)
tree605ccae8a42d2fc76f24b8011ea53757fdf571d8 /engines/hugo
parente4da5e3af48a71b36b8d927151aa08aa498bdcc9 (diff)
downloadscummvm-rg350-1da44acae34cf678d43c0fa17f6d8a84aea3b22e.tar.gz
scummvm-rg350-1da44acae34cf678d43c0fa17f6d8a84aea3b22e.tar.bz2
scummvm-rg350-1da44acae34cf678d43c0fa17f6d8a84aea3b22e.zip
HUGO: Implement REMAPPAL.
Palettes in H3 Win intro are now correct svn-id: r54100
Diffstat (limited to 'engines/hugo')
-rw-r--r--engines/hugo/display.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/hugo/display.cpp b/engines/hugo/display.cpp
index b368ce9357..6b182eafa6 100644
--- a/engines/hugo/display.cpp
+++ b/engines/hugo/display.cpp
@@ -110,8 +110,14 @@ void Screen::displayRect(int16 x, int16 y, int16 dx, int16 dy) {
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) {