Skip to content

Commit

Permalink
MADS: Correct the color for the top/bottom line bounding the cutscene
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster authored and bluegr committed Oct 15, 2014
1 parent b25b398 commit eb84b13
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions engines/mads/nebular/menu_nebular.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit eb84b13

Please sign in to comment.