aboutsummaryrefslogtreecommitdiff
path: root/sword2
diff options
context:
space:
mode:
authorTorbjörn Andersson2003-09-25 13:04:46 +0000
committerTorbjörn Andersson2003-09-25 13:04:46 +0000
commitf5d8300043fb36b72313707948d803e5e9674bf7 (patch)
tree5eb33479ba206ef960ccd3def9717757a925f955 /sword2
parenta4b32b67e8dc9f9e74e99573459f6fbbf47a9d5a (diff)
downloadscummvm-rg350-f5d8300043fb36b72313707948d803e5e9674bf7.tar.gz
scummvm-rg350-f5d8300043fb36b72313707948d803e5e9674bf7.tar.bz2
scummvm-rg350-f5d8300043fb36b72313707948d803e5e9674bf7.zip
Really clear the screen during the credits.
svn-id: r10408
Diffstat (limited to 'sword2')
-rw-r--r--sword2/function.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/sword2/function.cpp b/sword2/function.cpp
index 70da452f29..89a380d85d 100644
--- a/sword2/function.cpp
+++ b/sword2/function.cpp
@@ -19,6 +19,7 @@
#include "stdafx.h"
#include "driver/driver96.h"
+#include "driver/rdwin.h"
#include "build_display.h"
#include "credits.h"
#include "debug.h"
@@ -425,8 +426,11 @@ int32 FN_play_credits(int32 *params) {
debug(0, "Credits music length: ~%d ms", music_length);
+ CloseMenuImmediately();
+
while (g_sound->MusicTimeRemaining()) {
EraseBackBuffer();
+ SetNeedRedraw();
// FIXME: Draw the credits text. The actual text
// messages are stored in credits.clu, and I'm guessing
@@ -452,8 +456,9 @@ int32 FN_play_credits(int32 *params) {
FN_stop_music(NULL);
BS2_SetPalette(0, 256, oldPal, RDPAL_FADE);
-
FadeUp(0.75);
+ ServiceWindows();
+ Build_display();
WaitForFade();
g_sound->MuteFx(0);