[Scummvm-cvs-logs] scummvm master -> 1658a34ef5e6e6d48e45c4f38d7d507eb0f4d5ff

dreammaster dreammaster at scummvm.org
Wed Oct 15 04:30:20 CEST 2014


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
1658a34ef5 MADS: Correct the color for the top/bottom line bounding the cutscene


Commit: 1658a34ef5e6e6d48e45c4f38d7d507eb0f4d5ff
    https://github.com/scummvm/scummvm/commit/1658a34ef5e6e6d48e45c4f38d7d507eb0f4d5ff
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2014-10-14T22:29:29-04:00

Commit Message:
MADS: Correct the color for the top/bottom line bounding the cutscene

Changed paths:
    engines/mads/nebular/menu_nebular.cpp



diff --git a/engines/mads/nebular/menu_nebular.cpp b/engines/mads/nebular/menu_nebular.cpp
index 6d01419..a9ed6d3 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);






More information about the Scummvm-git-logs mailing list