aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/support/movie.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/support/movie.cpp')
-rw-r--r--engines/titanic/support/movie.cpp18
1 files changed, 2 insertions, 16 deletions
diff --git a/engines/titanic/support/movie.cpp b/engines/titanic/support/movie.cpp
index 50a55c8218..cfdcecbf42 100644
--- a/engines/titanic/support/movie.cpp
+++ b/engines/titanic/support/movie.cpp
@@ -133,22 +133,8 @@ void OSMovie::playCutscene(const Rect &drawRect, uint startFrame, uint endFrame)
drawRect.top + (heightLess ? CLIP_HEIGHT_REDUCED : CLIP_HEIGHT)
);
- uint timePerFrame = (uint)(1000.0 / _aviSurface._frameRate);
-
- for (; startFrame < endFrame; ++startFrame) {
- // Set the frame
- _aviSurface.setFrame(startFrame);
-
- // TODO: See if we need to do anything further here. The original had a bunch
- // of calls and using of the _movieSurface; perhaps to allow scaling down
- // videos to half-size
- if (widthLess || heightLess)
- warning("Not properly reducing clip size: %d %d", r.width(), r.height());
-
- // Wait for the next frame, unless the user interrupts the clip
- if (g_vm->_events->waitForPress(timePerFrame))
- break;
- }
+ _aviSurface.setFrame(startFrame);
+ _aviSurface.playCutscene(r, startFrame, endFrame);
}
void OSMovie::stop() {