diff options
author | Robert Göffringmann | 2005-11-12 09:14:07 +0000 |
---|---|---|
committer | Robert Göffringmann | 2005-11-12 09:14:07 +0000 |
commit | 6325516a0f65ad6dd3d4d81da322149b1ab51b75 (patch) | |
tree | 06ba2169a2db5b00812f81b546974066d965ece5 | |
parent | 5d4d7918485e9096566a1c576ac73c35d1742202 (diff) | |
download | scummvm-rg350-6325516a0f65ad6dd3d4d81da322149b1ab51b75.tar.gz scummvm-rg350-6325516a0f65ad6dd3d4d81da322149b1ab51b75.tar.bz2 scummvm-rg350-6325516a0f65ad6dd3d4d81da322149b1ab51b75.zip |
clear screen when entering control panel. Fixes palette glitch after playing animations
svn-id: r19570
-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; |