diff options
-rw-r--r-- | sword1/control.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sword1/control.cpp b/sword1/control.cpp index 833a5cc00a..13fa5c7243 100644 --- a/sword1/control.cpp +++ b/sword1/control.cpp @@ -232,6 +232,9 @@ uint8 Control::runPanel(void) { _restoreBuf = NULL; _keyPressed = _numButtons = 0; _screenBuf = (uint8*)malloc(640 * 480); + memset(_screenBuf, 0, 640 * 480); + _system->copyRectToScreen(_screenBuf, 640, 0, 0, 640, 480); + uint32 fontId = SR_FONT, redFontId = SR_REDFONT; if (SwordEngine::_systemVars.language == BS1_CZECH) { fontId = CZECH_SR_FONT; |