From 6506b95fceb603c79bdd67a30bf82739bd7e463e Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Sat, 26 Aug 2017 08:33:51 +0200 Subject: PEGASUS: Call OSystem::updateScreen on each frame Fixes the display of OSD information when toggling fullscreen. --- engines/pegasus/pegasus.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'engines/pegasus/pegasus.cpp') diff --git a/engines/pegasus/pegasus.cpp b/engines/pegasus/pegasus.cpp index 1f77caa751..7898d0b12a 100644 --- a/engines/pegasus/pegasus.cpp +++ b/engines/pegasus/pegasus.cpp @@ -939,8 +939,9 @@ void PegasusEngine::doGameMenuCommand(const GameMenuCommand command) { } else { _gfx->doFadeOutSync(); useMenu(0); - _gfx->clearScreen(); + _gfx->enableErase(); _gfx->updateDisplay(); + _gfx->disableErase(); Video::VideoDecoder *video = new Video::QuickTimeDecoder(); if (!video->loadFile(_introDirectory + "/Closing.movie")) @@ -1655,10 +1656,12 @@ void PegasusEngine::startNewGame() { GameState.resetGameState(); GameState.setWalkthroughMode(isWalkthrough); - // TODO: Enable erase _gfx->doFadeOutSync(); useMenu(0); + + _gfx->enableErase(); _gfx->updateDisplay(); + _gfx->disableErase(); _gfx->enableUpdates(); createInterface(); -- cgit v1.2.3