aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-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) {