From d5690d60256b163036076e80ce52917dfaca6784 Mon Sep 17 00:00:00 2001 From: johndoe123 Date: Thu, 17 May 2018 04:33:27 +1000 Subject: ILLUSIONS: BBDOU: Fix text drawing colors (cherry picked from commit a028c3f) --- engines/illusions/screentext.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'engines') diff --git a/engines/illusions/screentext.cpp b/engines/illusions/screentext.cpp index 206272dd27..a7e97eaa51 100644 --- a/engines/illusions/screentext.cpp +++ b/engines/illusions/screentext.cpp @@ -95,6 +95,17 @@ bool ScreenText::refreshScreenText(FontResource *font, WidthHeight dimensions, C _surface = _vm->_screen->allocSurface(dimensions._width, dimensions._height); _surface->fillRect(Common::Rect(0, 0, _surface->w, _surface->h), _vm->_screen->getColorKey1()); _dimensions = dimensions; + if (_vm->getGameId() == kGameIdBBDOU) { + if (backgroundColor == 0) { + backgroundColor = _vm->_screen->getColorKey1(); + borderColor = g_system->getScreenFormat().RGBToColor(128, 128, 128); + } else if (backgroundColor == 218) { + backgroundColor = g_system->getScreenFormat().RGBToColor(50, 50, 180); + borderColor = 0; + } else { + borderColor = g_system->getScreenFormat().RGBToColor(128, 128, 128); + } + } textDrawer.drawText(_vm->_screen, _surface, backgroundColor, borderColor); return done; } -- cgit v1.2.3