From 556414e53ac6b12e6fbc2d1b3df0a5fca628119d Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 5 Sep 2014 22:35:13 -0400 Subject: MADS: Fix custom color setup for quotes display --- engines/mads/nebular/menu_nebular.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'engines/mads/nebular/menu_nebular.cpp') 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; } -- cgit v1.2.3