aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo/intro.cpp
diff options
context:
space:
mode:
authorArnaud Boutonné2011-02-05 14:07:30 +0000
committerArnaud Boutonné2011-02-05 14:07:30 +0000
commitbc77c8534cd83b7102b1b80f86d32bc4d61b25f7 (patch)
treeecbccf4390461485ecf2d6215bfaffa4bae98256 /engines/hugo/intro.cpp
parent69a88e315cd4e5cb2062b80c206b3ce5c965369a (diff)
downloadscummvm-rg350-bc77c8534cd83b7102b1b80f86d32bc4d61b25f7.tar.gz
scummvm-rg350-bc77c8534cd83b7102b1b80f86d32bc4d61b25f7.tar.bz2
scummvm-rg350-bc77c8534cd83b7102b1b80f86d32bc4d61b25f7.zip
HUGO: Fix 2 uninitialized variables
svn-id: r55788
Diffstat (limited to 'engines/hugo/intro.cpp')
-rw-r--r--engines/hugo/intro.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/hugo/intro.cpp b/engines/hugo/intro.cpp
index 3a958a2988..73e6ab3e29 100644
--- a/engines/hugo/intro.cpp
+++ b/engines/hugo/intro.cpp
@@ -64,6 +64,7 @@ void intro_v1d::introInit() {
surf.pixels = _vm->_screen->getFrontBuffer();
surf.pitch = 320;
surf.bytesPerPixel = 1;
+ _vm->_screen->displayList(kDisplayInit);
}
bool intro_v1d::introPlay() {
@@ -206,6 +207,7 @@ void intro_v2d::preNewGame() {
}
void intro_v2d::introInit() {
+ _vm->_screen->displayList(kDisplayInit);
_vm->_file->readBackground(_vm->_numScreens - 1); // display splash screen
surf.w = 320;
surf.h = 200;
@@ -251,6 +253,7 @@ void intro_v3d::preNewGame() {
}
void intro_v3d::introInit() {
+ _vm->_screen->displayList(kDisplayInit);
_vm->_file->readBackground(_vm->_numScreens - 1); // display splash screen
surf.w = 320;
surf.h = 200;
@@ -365,9 +368,8 @@ void intro_v3w::preNewGame() {
* Hugo 3 - show map and set up for introPlay()
*/
void intro_v3w::introInit() {
-
+ _vm->_screen->displayList(kDisplayInit);
_vm->_file->readBackground(_vm->_numScreens - 1); // display splash screen
-
_vm->_screen->displayBackground();
g_system->updateScreen();
g_system->delayMillis(3000);