From d109cc1f985ab6e6827bcad54bee94498d1f5501 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 28 Mar 2004 13:10:52 +0000 Subject: Fixed bug I introduced in the recent cleanup: It's the screen, not the overlay, that needs to be cleared at the beginning of the movie. Otherwise what was on the screen may show at the end of the movie. svn-id: r13398 --- sword2/driver/animation.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sword2/driver/animation.cpp b/sword2/driver/animation.cpp index 8c952a90b5..0b73a18b4c 100644 --- a/sword2/driver/animation.cpp +++ b/sword2/driver/animation.cpp @@ -190,8 +190,12 @@ int32 MoviePlayer::play(const char *filename, MovieTextObject *text[], uint8 *mu return RD_OK; } - anim->clearScreen(); - anim->updateScreen(); +#ifndef BACKEND_8BIT + // Clear the screen, because whatever is on it will be visible when the + // overlay is removed. + _vm->_graphics->clearScene(); + _vm->_graphics->updateDisplay(); +#endif #ifndef SCUMM_BIG_ENDIAN flags |= SoundMixer::FLAG_LITTLE_ENDIAN; -- cgit v1.2.3