diff options
author | Paul Gilbert | 2014-09-05 22:35:13 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-09-05 22:35:13 -0400 |
commit | 556414e53ac6b12e6fbc2d1b3df0a5fca628119d (patch) | |
tree | 298880f98947f6ccc22ca6f4a7971b82e2e5deac /engines | |
parent | efcf87a6e5d9be34839cb60e3b257fe330a3b103 (diff) | |
download | scummvm-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.cpp | 12 |
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(¶mP) << 2; - palEntry[1] = getParameter(¶mP) << 2; - palEntry[2] = getParameter(¶mP) << 2; - _vm->_palette->setPalette(&palEntry[0], 5 + index, 1); + byte r = getParameter(¶mP); + byte g = getParameter(¶mP); + byte b = getParameter(¶mP); + + _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; } |