diff options
author | Torbjörn Andersson | 2004-03-28 13:10:52 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2004-03-28 13:10:52 +0000 |
commit | d109cc1f985ab6e6827bcad54bee94498d1f5501 (patch) | |
tree | 544156208b09edb5e5b0756eeaca855e07a13127 | |
parent | da400a38eda7b8a48c70ffe6ad03ea0df0233a14 (diff) | |
download | scummvm-rg350-d109cc1f985ab6e6827bcad54bee94498d1f5501.tar.gz scummvm-rg350-d109cc1f985ab6e6827bcad54bee94498d1f5501.tar.bz2 scummvm-rg350-d109cc1f985ab6e6827bcad54bee94498d1f5501.zip |
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
-rw-r--r-- | sword2/driver/animation.cpp | 8 |
1 files 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; |