From 0f93142ac9a6d92e16b3e7a3d16cdb2cdf72be80 Mon Sep 17 00:00:00 2001 From: AndywinXp Date: Sun, 27 Nov 2022 21:50:50 +0100 Subject: [PATCH] SCUMM: MI1 (Sega CD): Fix message banner colors --- engines/scumm/gfx_gui.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/engines/scumm/gfx_gui.cpp b/engines/scumm/gfx_gui.cpp index c2916f8df55..d8025bbecb0 100644 --- a/engines/scumm/gfx_gui.cpp +++ b/engines/scumm/gfx_gui.cpp @@ -131,6 +131,16 @@ Common::KeyState ScummEngine::showBannerAndPause(int bannerId, int32 waitTime, c bottomLineColor = 8; leftLineColor = 15; rightLineColor = 8; + } else if (_game.id == GID_MONKEY && _game.platform == Common::kPlatformSegaCD) { + // AFAIK, the original Sega CD interpreter doesn't have message banners, it just + // shows the main menu box (e.g. when pausing). In here, we can show the banner, + // but let's use the main menu box colors to avoid using unintended colors. + normalFillColor = getBannerColor(4); + normalTextColor = getBannerColor(2); + topLineColor = getBannerColor(13); + bottomLineColor = getBannerColor(14); + leftLineColor = getBannerColor(15); + rightLineColor = getBannerColor(16); } else { int palOffset = (_game.version == 8) ? 0 : 11; normalFillColor = getBannerColor(6 * bannerId + 15 + palOffset);