diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/titanic/support/avi_surface.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/titanic/support/avi_surface.cpp b/engines/titanic/support/avi_surface.cpp index 11b6b68ca4..b14d96238d 100644 --- a/engines/titanic/support/avi_surface.cpp +++ b/engines/titanic/support/avi_surface.cpp @@ -477,9 +477,6 @@ void AVISurface::playCutscene(const Rect &r, uint startFrame, uint endFrame) { if (_currentFrame != ((int)startFrame - 1) || startFrame == 0) { // Start video playback at the desired starting frame setFrame(startFrame); - isDifferent = _movieFrameSurface[0]->w != r.width() || - _movieFrameSurface[0]->h != r.height(); - startAtFrame(startFrame); _currentFrame = startFrame; } else { @@ -487,6 +484,9 @@ void AVISurface::playCutscene(const Rect &r, uint startFrame, uint endFrame) { _decoder->start(); } + isDifferent = _movieFrameSurface[0]->w != r.width() || + _movieFrameSurface[0]->h != r.height(); + while (_currentFrame < (int)endFrame && !g_vm->shouldQuit()) { if (isNextFrame()) { renderFrame(); |