aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsluicebox2020-01-05 00:44:08 -0800
committersluicebox2020-01-05 00:45:25 -0800
commit3c8e5d75c532c298408b3a24658118e18fa3ec00 (patch)
tree64672f8c7dcc8ef6ef4a53020b6fe43291eae21e
parent4182c50a92822fb21d2582e2293068777a7ccc15 (diff)
downloadscummvm-rg350-3c8e5d75c532c298408b3a24658118e18fa3ec00.tar.gz
scummvm-rg350-3c8e5d75c532c298408b3a24658118e18fa3ec00.tar.bz2
scummvm-rg350-3c8e5d75c532c298408b3a24658118e18fa3ec00.zip
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
-rw-r--r--engines/sci/graphics/video32.cpp4
1 files changed, 3 insertions, 1 deletions
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() {