From 2c86089264b1b917986076353c08bd6cf9d16b17 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 5 Jan 2008 10:36:36 +0000 Subject: Fix for showing the correct colour in the status line in EGA mode svn-id: r30229 --- engines/lure/room.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'engines/lure/room.cpp') 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); } } -- cgit v1.2.3