Skip to content

Commit

Permalink
PEGASUS: Fix redrawMovieWorld() to only update when needed
Browse files Browse the repository at this point in the history
A partial revert of 2bba1d0
  • Loading branch information
Matthew Hoops committed Oct 30, 2011
1 parent 60ecf84 commit 74d08a1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions engines/pegasus/movie.cpp
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 74d08a1

Please sign in to comment.