aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph-Eugene Winzer2017-07-17 16:37:05 +0200
committerThierry Crozat2018-01-22 23:54:42 +0000
commitb959453b39c76abfc459ecaef982593ff60bf300 (patch)
tree16a77add85a578a9511f324acc5e17c4f25e8e2e
parent28b6430eaa51a53ac2d1f80595679a617f02fd19 (diff)
downloadscummvm-rg350-b959453b39c76abfc459ecaef982593ff60bf300.tar.gz
scummvm-rg350-b959453b39c76abfc459ecaef982593ff60bf300.tar.bz2
scummvm-rg350-b959453b39c76abfc459ecaef982593ff60bf300.zip
SUPERNOVA: removeMessage() now restores the screen on destruction
-rw-r--r--engines/supernova/supernova.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/supernova/supernova.cpp b/engines/supernova/supernova.cpp
index e8e425336c..ed145f1cf4 100644
--- a/engines/supernova/supernova.cpp
+++ b/engines/supernova/supernova.cpp
@@ -105,6 +105,7 @@ SupernovaEngine::SupernovaEngine(OSystem *syst)
, _gameRunning(true)
, _screenWidth(320)
, _screenHeight(200)
+ , _messageDisplayed(false)
{
// const Common::FSNode gameDataDir(ConfMan.get("path"));
// SearchMan.addSubDirectoryMatching(gameDataDir, "sound");
@@ -437,8 +438,10 @@ void SupernovaEngine::renderMessage(const char *text, MessagePosition position)
}
void SupernovaEngine::removeMessage() {
- // TODO: restore surface
- _messageDisplayed = false;
+ if (_messageDisplayed) {
+ restoreScreen();
+ _messageDisplayed = false;
+ }
}
void SupernovaEngine::renderText(const char *text, int x, int y, byte color) {