diff options
author | Matthew Hoops | 2011-09-21 20:22:26 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-09-21 20:22:26 -0400 |
commit | 2bba1d0c11d2ceb8a1ec1dc5a9f1910a90b5cf5a (patch) | |
tree | cb1dad2846c4217e0bfffea6c9f905be8216f26f /engines/pegasus | |
parent | 02e7656b07061d0c8e5a7e79e731d5e01fc6210b (diff) | |
download | scummvm-rg350-2bba1d0c11d2ceb8a1ec1dc5a9f1910a90b5cf5a.tar.gz scummvm-rg350-2bba1d0c11d2ceb8a1ec1dc5a9f1910a90b5cf5a.tar.bz2 scummvm-rg350-2bba1d0c11d2ceb8a1ec1dc5a9f1910a90b5cf5a.zip |
PEGASUS: Allow redrawMovieWorld to be used without the video running
Diffstat (limited to 'engines/pegasus')
-rwxr-xr-x | engines/pegasus/movie.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/pegasus/movie.cpp b/engines/pegasus/movie.cpp index 8f79c03957..ba8f47d6ef 100755 --- a/engines/pegasus/movie.cpp +++ b/engines/pegasus/movie.cpp @@ -78,7 +78,7 @@ void Movie::setDirectDraw(const bool flag) { } void Movie::redrawMovieWorld() { - if (_video && _video->needsUpdate()) { + if (_video) { const Graphics::Surface *frame = _video->decodeNextFrame(); if (_directDraw) { @@ -154,7 +154,11 @@ void Movie::resume() { void Movie::checkCallBacks() { TimeBase::checkCallBacks(); - redrawMovieWorld(); + + // The reason why we overrode TimeBase's checkCallBacks(): + // Again, avoiding timers and handling it here + if (_video->needsUpdate()) + redrawMovieWorld(); } } // End of namespace Pegasus |