aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorjohndoe1232018-05-17 04:33:27 +1000
committerEugene Sandulenko2018-07-20 06:43:33 +0000
commitd5690d60256b163036076e80ce52917dfaca6784 (patch)
treef22c9a1dec296650ae8081ef5c358db4d398013b /engines
parentf15335db0f5a52750ee9e2b6d61e53880bad844f (diff)
downloadscummvm-rg350-d5690d60256b163036076e80ce52917dfaca6784.tar.gz
scummvm-rg350-d5690d60256b163036076e80ce52917dfaca6784.tar.bz2
scummvm-rg350-d5690d60256b163036076e80ce52917dfaca6784.zip
ILLUSIONS: BBDOU: Fix text drawing colors
(cherry picked from commit a028c3f)
Diffstat (limited to 'engines')
-rw-r--r--engines/illusions/screentext.cpp11
1 files changed, 11 insertions, 0 deletions
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;
}