From 3c8e5d75c532c298408b3a24658118e18fa3ec00 Mon Sep 17 00:00:00 2001 From: sluicebox Date: Sun, 5 Jan 2020 00:44:08 -0800 Subject: SCI32: Fix VMDPlayer not leaving last frame Applies _leaveLastFrame logic from VMDPlayer::closeComposited() to VMDPlayer::closeOverlay() where it was missing. Fixes bug #11299 in GK2 --- engines/sci/graphics/video32.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/sci/graphics/video32.cpp b/engines/sci/graphics/video32.cpp index 567660d97a..be62ba7882 100644 --- a/engines/sci/graphics/video32.cpp +++ b/engines/sci/graphics/video32.cpp @@ -936,7 +936,9 @@ void VMDPlayer::closeOverlay() { } #endif - g_sci->_gfxFrameout->frameOut(true, _drawRect); + if (!_leaveLastFrame && _leaveScreenBlack) { + g_sci->_gfxFrameout->frameOut(true, _drawRect); + } } void VMDPlayer::initComposited() { -- cgit v1.2.3