diff options
author | Paul Gilbert | 2014-10-14 22:29:29 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-10-14 22:29:29 -0400 |
commit | 1658a34ef5e6e6d48e45c4f38d7d507eb0f4d5ff (patch) | |
tree | 2a79a56c59a11451200b753a4e9feadd74310c70 | |
parent | 2048fe68d233cfff8523b1b2ee818088cb0fc939 (diff) | |
download | scummvm-rg350-1658a34ef5e6e6d48e45c4f38d7d507eb0f4d5ff.tar.gz scummvm-rg350-1658a34ef5e6e6d48e45c4f38d7d507eb0f4d5ff.tar.bz2 scummvm-rg350-1658a34ef5e6e6d48e45c4f38d7d507eb0f4d5ff.zip |
MADS: Correct the color for the top/bottom line bounding the cutscene
-rw-r--r-- | engines/mads/nebular/menu_nebular.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
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); |