From 1658a34ef5e6e6d48e45c4f38d7d507eb0f4d5ff Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 14 Oct 2014 22:29:29 -0400 Subject: MADS: Correct the color for the top/bottom line bounding the cutscene --- engines/mads/nebular/menu_nebular.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'engines/mads') diff --git a/engines/mads/nebular/menu_nebular.cpp b/engines/mads/nebular/menu_nebular.cpp index 6d014191e9..a9ed6d3495 100644 --- a/engines/mads/nebular/menu_nebular.cpp +++ b/engines/mads/nebular/menu_nebular.cpp @@ -889,9 +889,24 @@ void AnimationView::loadNextResource() { if (resEntry._bgFlag) palette.resetGamePalette(1, 8); + palette._mainPalette[253 * 3] = palette._mainPalette[253 * 3 + 1] + = palette._mainPalette[253 * 3 + 2] = 0xb4; + palette.setPalette(&palette._mainPalette[253 * 3], 253, 1); + // Free any previous messages scene._kernelMessages.reset(); + // Handle the bars at the top/bottom + if (resEntry._showWhiteBars) { + // For animations the screen has been clipped to the middle 156 rows. + // So although it's slightly messy, bypass our screen class entirely, + // and draw the horizontal lines directly on the physiacl screen surface + Graphics::Surface *s = g_system->lockScreen(); + s->hLine(0, 20, MADS_SCREEN_WIDTH, 253); + s->hLine(0, 179, MADS_SCREEN_WIDTH, 253); + g_system->unlockScreen(); + } + // Load the new animation delete _currentAnimation; _currentAnimation = Animation::init(_vm, &scene); -- cgit v1.2.3