From 2bba1d0c11d2ceb8a1ec1dc5a9f1910a90b5cf5a Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Wed, 21 Sep 2011 20:22:26 -0400 Subject: PEGASUS: Allow redrawMovieWorld to be used without the video running --- engines/pegasus/movie.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'engines/pegasus/movie.cpp') 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 -- cgit v1.2.3