diff options
author | Matthew Hoops | 2011-10-30 19:23:33 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-10-30 19:23:33 -0400 |
commit | 74d08a1543b9200f22e609576bdc5c97cdd7e8ed (patch) | |
tree | 09d50ca8566822178751618787bb40ec2513ad3e | |
parent | 60ecf84365935d32fe840dc4d055629745a63b00 (diff) | |
download | scummvm-rg350-74d08a1543b9200f22e609576bdc5c97cdd7e8ed.tar.gz scummvm-rg350-74d08a1543b9200f22e609576bdc5c97cdd7e8ed.tar.bz2 scummvm-rg350-74d08a1543b9200f22e609576bdc5c97cdd7e8ed.zip |
PEGASUS: Fix redrawMovieWorld() to only update when needed
A partial revert of 2bba1d0c11d2ceb8a1ec1dc5a9f1910a90b5cf5a
-rwxr-xr-x | engines/pegasus/movie.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/pegasus/movie.cpp b/engines/pegasus/movie.cpp index 1c07c48014..8d6f0fab51 100755 --- a/engines/pegasus/movie.cpp +++ b/engines/pegasus/movie.cpp @@ -87,7 +87,7 @@ void Movie::initFromMovieFile(const Common::String &fileName, bool transparent) } void Movie::redrawMovieWorld() { - if (_video) { + if (_video && _video->needsUpdate()) { const Graphics::Surface *frame = _video->decodeNextFrame(); if (!frame) @@ -194,8 +194,7 @@ void Movie::updateTime() { // The reason why we overrode TimeBase's updateTime(): // Again, avoiding timers and handling it here if (_video && !_video->isPaused()) { - if (_video->needsUpdate()) - redrawMovieWorld(); + redrawMovieWorld(); uint32 startTime = _startTime * getScale() / _startScale; uint32 stopTime = _stopTime * getScale() / _stopScale; |