[Scummvm-cvs-logs] SF.net SVN: scummvm:[54902] scummvm/trunk/engines/hugo

strangerke at users.sourceforge.net strangerke at users.sourceforge.net
Mon Dec 13 22:08:53 CET 2010


Revision: 54902
          http://scummvm.svn.sourceforge.net/scummvm/?rev=54902&view=rev
Author:   strangerke
Date:     2010-12-13 21:08:52 +0000 (Mon, 13 Dec 2010)

Log Message:
-----------
HUGO: Add splash screen in H2 and H3 Win

Modified Paths:
--------------
    scummvm/trunk/engines/hugo/hugo.cpp
    scummvm/trunk/engines/hugo/intro_v2w.cpp
    scummvm/trunk/engines/hugo/intro_v3w.cpp

Modified: scummvm/trunk/engines/hugo/hugo.cpp
===================================================================
--- scummvm/trunk/engines/hugo/hugo.cpp	2010-12-13 20:19:34 UTC (rev 54901)
+++ scummvm/trunk/engines/hugo/hugo.cpp	2010-12-13 21:08:52 UTC (rev 54902)
@@ -258,7 +258,6 @@
 	/* Use Windows-looking mouse cursor */
 	CursorMan.replaceCursorPalette(stdMouseCursorPalette, 1, ARRAYSIZE(stdMouseCursorPalette) / 4);
 	CursorMan.replaceCursor(stdMouseCursor, stdMousrCursorWidth, stdMousrCursorHeight, 1, 1, 0);
-	CursorMan.showMouse(true);
 
 	initStatus();                                   // Initialize game status
 	initConfig(INSTALL);                            // Initialize user's config
@@ -347,11 +346,11 @@
 
 	switch (gameStatus.viewState) {
 	case V_IDLE:                                    // Not processing state machine
+		CursorMan.showMouse(false);
 		_intro->preNewGame();                       // Any processing before New Game selected
 		break;
 	case V_INTROINIT:                               // Initialization before intro begins
 		_intro->introInit();
-		CursorMan.showMouse(false);
 		gameStatus.viewState = V_INTRO;
 		break;
 	case V_INTRO:                                   // Do any game-dependant preamble

Modified: scummvm/trunk/engines/hugo/intro_v2w.cpp
===================================================================
--- scummvm/trunk/engines/hugo/intro_v2w.cpp	2010-12-13 20:19:34 UTC (rev 54901)
+++ scummvm/trunk/engines/hugo/intro_v2w.cpp	2010-12-13 21:08:52 UTC (rev 54902)
@@ -34,6 +34,7 @@
 
 #include "hugo/hugo.h"
 #include "hugo/intro.h"
+#include "hugo/display.h"
 
 
 namespace Hugo {
@@ -48,6 +49,11 @@
 }
 
 void intro_v2w::introInit() {
+	_vm->_file->readBackground(_vm->_numScreens - 1); // display splash screen
+
+	_vm->_screen->displayBackground();
+	g_system->updateScreen();
+	g_system->delayMillis(3000);
 }
 
 bool intro_v2w::introPlay() {

Modified: scummvm/trunk/engines/hugo/intro_v3w.cpp
===================================================================
--- scummvm/trunk/engines/hugo/intro_v3w.cpp	2010-12-13 20:19:34 UTC (rev 54901)
+++ scummvm/trunk/engines/hugo/intro_v3w.cpp	2010-12-13 21:08:52 UTC (rev 54902)
@@ -53,6 +53,13 @@
 * Hugo 3 - show map and set up for introPlay()
 */
 void intro_v3w::introInit() {
+
+	_vm->_file->readBackground(_vm->_numScreens - 1); // display splash screen
+
+	_vm->_screen->displayBackground();
+	g_system->updateScreen();
+	g_system->delayMillis(3000);
+
 //#if STORY
 	_vm->_file->readBackground(22); // display screen MAP_3w
 	_vm->_screen->displayBackground();


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list