From d5df72998c33a03b58b0206dd39685280f25d39d Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 12 Sep 2017 20:39:54 -0400 Subject: TITANIC: Fix blocky squares during transitions on SGT level --- engines/titanic/support/avi_surface.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engines/titanic') diff --git a/engines/titanic/support/avi_surface.cpp b/engines/titanic/support/avi_surface.cpp index a817f492c1..cebc4ba43e 100644 --- a/engines/titanic/support/avi_surface.cpp +++ b/engines/titanic/support/avi_surface.cpp @@ -493,6 +493,12 @@ bool AVISurface::playCutscene(const Rect &r, uint startFrame, uint endFrame) { if (_currentFrame != ((int)startFrame - 1) || startFrame == 0) { // Start video playback at the desired starting frame + if (startFrame > 0) { + // Give a chance for a key frame just prior to the start frame + // to be loaded first + setFrame(startFrame - 1); + } + setFrame(startFrame); startAtFrame(startFrame); _currentFrame = startFrame; -- cgit v1.2.3