aboutsummaryrefslogtreecommitdiff
path: root/engines/lure
diff options
context:
space:
mode:
authorPaul Gilbert2008-01-05 11:25:30 +0000
committerPaul Gilbert2008-01-05 11:25:30 +0000
commit705bd9236c6f56e90f3c27dd42051cc408156494 (patch)
treec0429020005a62f9f75f03ca660bdc8daaecf46d /engines/lure
parent9e02b32220b6331b5a7280d563c58c652a1adc66 (diff)
downloadscummvm-rg350-705bd9236c6f56e90f3c27dd42051cc408156494.tar.gz
scummvm-rg350-705bd9236c6f56e90f3c27dd42051cc408156494.tar.bz2
scummvm-rg350-705bd9236c6f56e90f3c27dd42051cc408156494.zip
Fix for popup menus to work in EGA mode
svn-id: r30234
Diffstat (limited to 'engines/lure')
-rw-r--r--engines/lure/menu.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/lure/menu.cpp b/engines/lure/menu.cpp
index 3a0565d1ab..d5290fb929 100644
--- a/engines/lure/menu.cpp
+++ b/engines/lure/menu.cpp
@@ -468,6 +468,7 @@ uint16 PopupMenu::Show(int numEntries, const char *actions[]) {
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 @@ uint16 PopupMenu::Show(int numEntries, const char *actions[]) {
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 @@ uint16 PopupMenu::Show(int numEntries, const char *actions[]) {
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);
}