aboutsummaryrefslogtreecommitdiff
path: root/engines/lab/graphics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lab/graphics.cpp')
-rw-r--r--engines/lab/graphics.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/lab/graphics.cpp b/engines/lab/graphics.cpp
index a10512df55..babc5502dd 100644
--- a/engines/lab/graphics.cpp
+++ b/engines/lab/graphics.cpp
@@ -45,6 +45,7 @@ BitMap bit1, bit2, *DispBitMap = &bit1, *DrawBitMap = &bit1;
DisplayMan::DisplayMan(LabEngine *vm) : _vm(vm) {
_longWinInFront = false;
_lastMessageLong = false;
+ _doNotDrawMessage = false;
_screenBytesPerPage = 65536;
_curapen = 0;
@@ -199,7 +200,6 @@ bool readMusic(const char *filename, bool waitTillFinished) {
/*---------------------------------------------------------------------------*/
/*------------ Does all the text rendering to the message boxes. ------------*/
/*---------------------------------------------------------------------------*/
-bool DoNotDrawMessage = false;
/*----- The flowText routines -----*/
@@ -404,8 +404,8 @@ int32 DisplayMan::longDrawMessage(const char *str) {
/* Draws a message to the message box. */
/******************************************************************************/
void DisplayMan::drawMessage(const char *str) {
- if (DoNotDrawMessage) {
- DoNotDrawMessage = false;
+ if (_doNotDrawMessage) {
+ _doNotDrawMessage = false;
return;
}