aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/room.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2008-01-05 10:36:36 +0000
committerPaul Gilbert2008-01-05 10:36:36 +0000
commit2c86089264b1b917986076353c08bd6cf9d16b17 (patch)
tree1d8cca70a779cdeb3c0334127d4fc25ed87ef9f1 /engines/lure/room.cpp
parent65399321ebf9e06af48239bf4f0c62c3eead7593 (diff)
downloadscummvm-rg350-2c86089264b1b917986076353c08bd6cf9d16b17.tar.gz
scummvm-rg350-2c86089264b1b917986076353c08bd6cf9d16b17.tar.bz2
scummvm-rg350-2c86089264b1b917986076353c08bd6cf9d16b17.zip
Fix for showing the correct colour in the status line in EGA mode
svn-id: r30229
Diffstat (limited to 'engines/lure/room.cpp')
-rw-r--r--engines/lure/room.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/lure/room.cpp b/engines/lure/room.cpp
index 1252879659..d9a7597cb7 100644
--- a/engines/lure/room.cpp
+++ b/engines/lure/room.cpp
@@ -430,6 +430,7 @@ void Room::update() {
Surface &s = _screen.screen();
Resources &res = Resources::getReference();
HotspotList &hotspots = res.activeHotspots();
+ byte white = LureEngine::getReference().isEGA() ? EGA_DIALOG_WHITE_COLOUR : VGA_DIALOG_WHITE_COLOUR;
HotspotList::iterator i;
// Copy the background to the temporary screen surface
@@ -489,7 +490,7 @@ void Room::update() {
if (!*_statusLine) {
// No current status action being display
if (_hotspotId != 0)
- s.writeString(0, 0, _hotspotName, false, DIALOG_TEXT_COLOUR);
+ s.writeString(0, 0, _hotspotName, false);
} else {
// Word wrap (if necessary) the status line and dispaly it
char *statusLineCopy = strdup(_statusLine);
@@ -498,7 +499,7 @@ void Room::update() {
int16 yPos = 0;
s.wordWrap(statusLineCopy, s.width(), lines, numLines);
for (int lineNum = 0; lineNum < numLines; ++lineNum) {
- s.writeString(0, yPos, lines[lineNum], false, DIALOG_WHITE_COLOUR);
+ s.writeString(0, yPos, lines[lineNum], false, white);
yPos += FONT_HEIGHT;
}
Memory::dealloc(lines);
@@ -535,7 +536,7 @@ void Room::update() {
Mouse &m = Mouse::getReference();
sprintf(buffer, "Room %d Pos (%d,%d) @ (%d,%d)", _roomNumber, m.x(), m.y(),
m.x() / RECT_SIZE, (m.y() - MENUBAR_Y_SIZE) / RECT_SIZE);
- s.writeString(FULL_SCREEN_WIDTH / 2, 0, buffer, false, DIALOG_TEXT_COLOUR);
+ s.writeString(FULL_SCREEN_WIDTH / 2, 0, buffer, false, white);
}
}