diff options
Diffstat (limited to 'engines/titanic/support/movie.cpp')
-rw-r--r-- | engines/titanic/support/movie.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/titanic/support/movie.cpp b/engines/titanic/support/movie.cpp index eba878e875..3c935e83a8 100644 --- a/engines/titanic/support/movie.cpp +++ b/engines/titanic/support/movie.cpp @@ -171,11 +171,11 @@ void OSMovie::setFrame(uint frameNumber) { bool OSMovie::handleEvents(CMovieEventList &events) { if (!_aviSurface.isPlaying()) return false; - if (!_aviSurface.isFrameReady()) + if (!_aviSurface.isNextFrame()) return _aviSurface.isPlaying(); // Handle updating the frame - while (_aviSurface.isPlaying() && _aviSurface.isFrameReady()) { + while (_aviSurface.isPlaying() && _aviSurface.isNextFrame()) { _aviSurface.handleEvents(events); _videoSurface->setMovieFrameSurface(_aviSurface.getSecondarySurface()); } |