aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorArnaud Boutonné2010-12-13 21:08:52 +0000
committerArnaud Boutonné2010-12-13 21:08:52 +0000
commita90fdce46d4819e9153f12899cc0f2216a298d86 (patch)
tree335e78bc8e6461d2fe0499adfb2c3ee8c8757ded /engines
parent0082f8ec8b690682f6fb0ae8339b6002fe8ea5e6 (diff)
downloadscummvm-rg350-a90fdce46d4819e9153f12899cc0f2216a298d86.tar.gz
scummvm-rg350-a90fdce46d4819e9153f12899cc0f2216a298d86.tar.bz2
scummvm-rg350-a90fdce46d4819e9153f12899cc0f2216a298d86.zip
HUGO: Add splash screen in H2 and H3 Win
svn-id: r54902
Diffstat (limited to 'engines')
-rw-r--r--engines/hugo/hugo.cpp3
-rw-r--r--engines/hugo/intro_v2w.cpp6
-rw-r--r--engines/hugo/intro_v3w.cpp7
3 files changed, 14 insertions, 2 deletions
diff --git a/engines/hugo/hugo.cpp b/engines/hugo/hugo.cpp
index 9ec3887cfa..152e755cab 100644
--- a/engines/hugo/hugo.cpp
+++ b/engines/hugo/hugo.cpp
@@ -258,7 +258,6 @@ Common::Error HugoEngine::run() {
/* 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 @@ void HugoEngine::runMachine() {
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
diff --git a/engines/hugo/intro_v2w.cpp b/engines/hugo/intro_v2w.cpp
index 414846bfc7..77f8eaa83c 100644
--- a/engines/hugo/intro_v2w.cpp
+++ b/engines/hugo/intro_v2w.cpp
@@ -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::preNewGame() {
}
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() {
diff --git a/engines/hugo/intro_v3w.cpp b/engines/hugo/intro_v3w.cpp
index 06fe1814fe..0dcfac0b6e 100644
--- a/engines/hugo/intro_v3w.cpp
+++ b/engines/hugo/intro_v3w.cpp
@@ -53,6 +53,13 @@ void intro_v3w::preNewGame() {
* 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();