From 5aeda50f5811d185e336813d7c7904b771e453ae Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Fri, 26 Feb 2016 07:18:44 +0100 Subject: MOHAWK: Fix the drawing time simulation Was broken when adding transition support. Fixes scripted card changes not displaying for a long enough time. --- engines/mohawk/myst.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'engines/mohawk/myst.cpp') diff --git a/engines/mohawk/myst.cpp b/engines/mohawk/myst.cpp index e0e8380cba..3bc2b2dccb 100644 --- a/engines/mohawk/myst.cpp +++ b/engines/mohawk/myst.cpp @@ -599,10 +599,12 @@ void MohawkEngine_Myst::changeToCard(uint16 card, TransitionType transition) { // Make sure the screen is updated if (transition != kNoTransition) { - if (!_gameState->_globals.transitions) - transition = kTransitionCopy; - - _gfx->runTransition(transition, Common::Rect(544, 333), 10, 0); + if (_gameState->_globals.transitions) { + _gfx->runTransition(transition, Common::Rect(544, 333), 10, 0); + } else { + _gfx->copyBackBufferToScreen(Common::Rect(544, 333)); + _needsUpdate = true; + } } // Make sure we have the right cursor showing -- cgit v1.2.3