aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}