From 009e48154789696ca1a3920982c9ef836cae8735 Mon Sep 17 00:00:00 2001 From: Arnaud Boutonné Date: Sat, 25 Sep 2010 13:39:19 +0000 Subject: HUGO: Add H2 Dos splash screen svn-id: r52880 --- engines/hugo/intro.cpp | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'engines/hugo') diff --git a/engines/hugo/intro.cpp b/engines/hugo/intro.cpp index 3a4beebd1c..589897c760 100644 --- a/engines/hugo/intro.cpp +++ b/engines/hugo/intro.cpp @@ -166,6 +166,25 @@ void intro_v2d::preNewGame() { } void intro_v2d::introInit() { + _vm.screen().loadFont(0); + _vm.file().readBackground(_vm._numScreens - 1); // display splash screen + + char buffer[128]; + + if (_boot.registered) + sprintf(buffer, "%s Registered Version", COPYRIGHT); + else + sprintf(buffer, "%s Shareware Version", COPYRIGHT); + _vm.screen().writeStr(CENTER, 186, buffer, _TLIGHTRED); + + if (scumm_stricmp(_boot.distrib, "David P. Gray")) { + sprintf(buffer, "Distributed by %s.", _boot.distrib); + _vm.screen().writeStr(CENTER, 1, buffer, _TLIGHTRED); + } + + _vm.screen().displayBackground(); + g_system->updateScreen(); + g_system->delayMillis(5000); } bool intro_v2d::introPlay() { @@ -183,10 +202,8 @@ void intro_v3d::preNewGame() { } void intro_v3d::introInit() { - _vm.file().readBackground(25); // display splash screen - _vm.screen().displayBackground(); - _vm.screen().loadFont(0); + _vm.file().readBackground(_vm._numScreens - 1); // display splash screen char buffer[128]; if (_boot.registered) -- cgit v1.2.3