[Scummvm-cvs-logs] scummvm master -> 556414e53ac6b12e6fbc2d1b3df0a5fca628119d
dreammaster
dreammaster at scummvm.org
Sat Sep 6 04:35:52 CEST 2014
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
556414e53a MADS: Fix custom color setup for quotes display
Commit: 556414e53ac6b12e6fbc2d1b3df0a5fca628119d
https://github.com/scummvm/scummvm/commit/556414e53ac6b12e6fbc2d1b3df0a5fca628119d
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2014-09-05T22:35:13-04:00
Commit Message:
MADS: Fix custom color setup for quotes display
Changed paths:
engines/mads/nebular/menu_nebular.cpp
diff --git a/engines/mads/nebular/menu_nebular.cpp b/engines/mads/nebular/menu_nebular.cpp
index e29e9ff..d7d98a5 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;
}
More information about the Scummvm-git-logs
mailing list