[Scummvm-cvs-logs] scummvm master -> 83152fd6088f08c238a1d175cfadef847dd7eaac

clone2727 clone2727 at gmail.com
Tue Feb 5 01:05:14 CET 2013


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:
83152fd608 PEGASUS: Make the demo menu music start before the splash screen


Commit: 83152fd6088f08c238a1d175cfadef847dd7eaac
    https://github.com/scummvm/scummvm/commit/83152fd6088f08c238a1d175cfadef847dd7eaac
Author: Matthew Hoops (clone2727 at gmail.com)
Date: 2013-02-04T16:03:21-08:00

Commit Message:
PEGASUS: Make the demo menu music start before the splash screen

Changed paths:
    engines/pegasus/pegasus.cpp



diff --git a/engines/pegasus/pegasus.cpp b/engines/pegasus/pegasus.cpp
index be3fcd5..eedfaa7 100644
--- a/engines/pegasus/pegasus.cpp
+++ b/engines/pegasus/pegasus.cpp
@@ -691,19 +691,35 @@ void PegasusEngine::receiveNotification(Notification *notification, const Notifi
 		case kGameStartingFlag: {
 			useMenu(new MainMenu());
 
-			if (!isDemo()) {
+			if (isDemo()) {
+				// Start playing the music earlier here
+				((MainMenu *)_gameMenu)->startMainMenuLoop();
+
+				// Show the intro splash screen
+				showTempScreen("Images/Demo/NGsplashScrn.pict");
+
+				if (shouldQuit()) {
+					useMenu(0);
+					return;
+				}
+
+				// Fade out and then back in with the main menu
+				_gfx->doFadeOutSync();
+				_gfx->updateDisplay();
+				_gfx->doFadeInSync();
+			} else {
+				// Display the intro
 				runIntro();
 				resetIntroTimer();
-			} else {
-				showTempScreen("Images/Demo/NGsplashScrn.pict");
-			}
 
-			if (shouldQuit())
-				return;
+				if (shouldQuit())
+					return;
 
-			_gfx->invalRect(Common::Rect(0, 0, 640, 480));
-			_gfx->updateDisplay();
-			((MainMenu *)_gameMenu)->startMainMenuLoop();
+				// Now display the main menu
+				_gfx->invalRect(Common::Rect(0, 0, 640, 480));
+				_gfx->updateDisplay();
+				((MainMenu *)_gameMenu)->startMainMenuLoop();
+			}
 			break;
 		}
 		case kPlayerDiedFlag:






More information about the Scummvm-git-logs mailing list