[Scummvm-cvs-logs] CVS: scummvm/sword1 control.cpp,1.67,1.68
Robert Göffringmann
lavosspawn at users.sourceforge.net
Sat Nov 12 01:15:01 CET 2005
Update of /cvsroot/scummvm/scummvm/sword1
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3079/sword1
Modified Files:
control.cpp
Log Message:
clear screen when entering control panel. Fixes palette glitch after playing animations
Index: control.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword1/control.cpp,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- control.cpp 8 Nov 2005 07:28:31 -0000 1.67
+++ control.cpp 12 Nov 2005 09:14:07 -0000 1.68
@@ -232,6 +232,9 @@
_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;
More information about the Scummvm-git-logs
mailing list