diff options
author | Bastien Bouclet | 2017-08-26 08:33:51 +0200 |
---|---|---|
committer | Bastien Bouclet | 2017-09-12 20:25:24 +0200 |
commit | 6506b95fceb603c79bdd67a30bf82739bd7e463e (patch) | |
tree | 8fa7b20ff8eb1f7fd4dc7d9ff5bb8da22ff1bfc0 /engines/pegasus/pegasus.cpp | |
parent | 6a38fdf2b4eace7b34c3d8bd907e39a661edf2b6 (diff) | |
download | scummvm-rg350-6506b95fceb603c79bdd67a30bf82739bd7e463e.tar.gz scummvm-rg350-6506b95fceb603c79bdd67a30bf82739bd7e463e.tar.bz2 scummvm-rg350-6506b95fceb603c79bdd67a30bf82739bd7e463e.zip |
PEGASUS: Call OSystem::updateScreen on each frame
Fixes the display of OSD information when toggling fullscreen.
Diffstat (limited to 'engines/pegasus/pegasus.cpp')
-rw-r--r-- | engines/pegasus/pegasus.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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(); |