[Scummvm-cvs-logs] SF.net SVN: scummvm: [30234] scummvm/trunk/engines/lure/menu.cpp
dreammaster at users.sourceforge.net
dreammaster at users.sourceforge.net
Sat Jan 5 12:25:31 CET 2008
Revision: 30234
http://scummvm.svn.sourceforge.net/scummvm/?rev=30234&view=rev
Author: dreammaster
Date: 2008-01-05 03:25:30 -0800 (Sat, 05 Jan 2008)
Log Message:
-----------
Fix for popup menus to work in EGA mode
Modified Paths:
--------------
scummvm/trunk/engines/lure/menu.cpp
Modified: scummvm/trunk/engines/lure/menu.cpp
===================================================================
--- scummvm/trunk/engines/lure/menu.cpp 2008-01-05 11:24:37 UTC (rev 30233)
+++ scummvm/trunk/engines/lure/menu.cpp 2008-01-05 11:25:30 UTC (rev 30234)
@@ -468,6 +468,7 @@
Screen &screen = Screen::getReference();
Rect r;
bool isEGA = LureEngine::getReference().isEGA();
+ byte bgColour = isEGA ? EGA_DIALOG_BG_COLOUR : 0;
byte textColour = isEGA ? EGA_DIALOG_TEXT_COLOUR : VGA_DIALOG_TEXT_COLOUR;
byte whiteColour = isEGA ? EGA_DIALOG_WHITE_COLOUR : VGA_DIALOG_WHITE_COLOUR;
@@ -513,7 +514,7 @@
for (;;) {
if (refreshFlag) {
// Set up the contents of the menu
- s->fillRect(r, 0);
+ s->fillRect(r, bgColour);
for (int index = 0; index < numLines; ++index) {
#ifndef LURE_CLICKABLE_MENUS
@@ -525,9 +526,9 @@
s->writeString(Surface::textX(), Surface::textY() + index * FONT_HEIGHT,
actions[actionIndex], true,
#ifndef LURE_CLICKABLE_MENUS
- (index == (numLines / 2)) ? textColour : whiteColour,
+ (index == (numLines / 2)) ? whiteColour : textColour,
#else
- (index == selectedIndex) ? textColour : whiteColour,
+ (index == selectedIndex) ? whiteColour : textColour,
#endif
false);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list