aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic
diff options
context:
space:
mode:
authorPaul Gilbert2017-07-16 18:33:36 -0400
committerPaul Gilbert2017-07-16 18:33:36 -0400
commit679c0e72b146a72340fd6b2ae5aac157831bae13 (patch)
tree53280214035b54c159484ec74f4b0433d6efc1c3 /engines/titanic
parent91eef8f4c07db82b2e595ac503827913a71870ac (diff)
downloadscummvm-rg350-679c0e72b146a72340fd6b2ae5aac157831bae13.tar.gz
scummvm-rg350-679c0e72b146a72340fd6b2ae5aac157831bae13.tar.bz2
scummvm-rg350-679c0e72b146a72340fd6b2ae5aac157831bae13.zip
TITANIC: Fix scaling in scene transition cutscenes
Diffstat (limited to 'engines/titanic')
-rw-r--r--engines/titanic/support/avi_surface.cpp6
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();