From 6325516a0f65ad6dd3d4d81da322149b1ab51b75 Mon Sep 17 00:00:00 2001 From: Robert Göffringmann Date: Sat, 12 Nov 2005 09:14:07 +0000 Subject: clear screen when entering control panel. Fixes palette glitch after playing animations svn-id: r19570 --- sword1/control.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; -- cgit v1.2.3