From 13cb1e710ff2a6be394d76334d267b9e8bf12ba9 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 5 Jan 2008 10:37:36 +0000 Subject: Fix to use correct EGA/VGA colour when displaying talk conversation options svn-id: r30230 --- engines/lure/hotspots.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/lure/hotspots.cpp b/engines/lure/hotspots.cpp index 6ca7fdcc1a..75f225a187 100644 --- a/engines/lure/hotspots.cpp +++ b/engines/lure/hotspots.cpp @@ -3375,8 +3375,9 @@ void HotspotTickHandlers::talkAnimHandler(Hotspot &h) { screen.screen().fillRect(r, 0); // Display line - byte colour = (lineNum+1 == selectedLine) ? - DIALOG_WHITE_COLOUR : DIALOG_TEXT_COLOUR; + byte colour = LureEngine::getReference().isEGA() ? + ((lineNum + 1 == selectedLine) ? EGA_DIALOG_WHITE_COLOUR : EGA_DIALOG_TEXT_COLOUR) : + ((lineNum + 1 == selectedLine) ? VGA_DIALOG_WHITE_COLOUR : VGA_DIALOG_TEXT_COLOUR); screen.screen().writeString(r.left, r.top, buffer, false, colour); } -- cgit v1.2.3