aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2014-09-05 22:35:13 -0400
committerPaul Gilbert2014-09-05 22:35:13 -0400
commit556414e53ac6b12e6fbc2d1b3df0a5fca628119d (patch)
tree298880f98947f6ccc22ca6f4a7971b82e2e5deac /engines
parentefcf87a6e5d9be34839cb60e3b257fe330a3b103 (diff)
downloadscummvm-rg350-556414e53ac6b12e6fbc2d1b3df0a5fca628119d.tar.gz
scummvm-rg350-556414e53ac6b12e6fbc2d1b3df0a5fca628119d.tar.bz2
scummvm-rg350-556414e53ac6b12e6fbc2d1b3df0a5fca628119d.zip
MADS: Fix custom color setup for quotes display
Diffstat (limited to 'engines')
-rw-r--r--engines/mads/nebular/menu_nebular.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/engines/mads/nebular/menu_nebular.cpp b/engines/mads/nebular/menu_nebular.cpp
index e29e9ff954..d7d98a55cf 100644
--- a/engines/mads/nebular/menu_nebular.cpp
+++ b/engines/mads/nebular/menu_nebular.cpp
@@ -560,11 +560,11 @@ void TextView::processCommand() {
int index = commandStr[5] - '0';
paramP = commandStr + 6;
- byte palEntry[3];
- palEntry[0] = getParameter(&paramP) << 2;
- palEntry[1] = getParameter(&paramP) << 2;
- palEntry[2] = getParameter(&paramP) << 2;
- _vm->_palette->setPalette(&palEntry[0], 5 + index, 1);
+ byte r = getParameter(&paramP);
+ byte g = getParameter(&paramP);
+ byte b = getParameter(&paramP);
+
+ _vm->_palette->setEntry(5 + index, r, g, b);
} else if (!strncmp(commandStr, "SPARE", 5)) {
// Sets a secondary background number that can be later switched in with a PAGE command
@@ -645,8 +645,6 @@ void TextView::processText() {
}
void TextView::display() {
- resetPalette();
-
FullScreenDialog::display();
_sceneChanged = true;
}