[Scummvm-cvs-logs] SF.net SVN: scummvm:[38343] scummvm/trunk/engines/sword1/animation.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Mon Feb 16 07:02:22 CET 2009
Revision: 38343
http://scummvm.svn.sourceforge.net/scummvm/?rev=38343&view=rev
Author: eriktorbjorn
Date: 2009-02-16 06:02:21 +0000 (Mon, 16 Feb 2009)
Log Message:
-----------
Blank the palette correctly. (Fixes Valgrind warning.)
Modified Paths:
--------------
scummvm/trunk/engines/sword1/animation.cpp
Modified: scummvm/trunk/engines/sword1/animation.cpp
===================================================================
--- scummvm/trunk/engines/sword1/animation.cpp 2009-02-16 04:48:10 UTC (rev 38342)
+++ scummvm/trunk/engines/sword1/animation.cpp 2009-02-16 06:02:21 UTC (rev 38343)
@@ -181,13 +181,13 @@
_system->delayMillis(100);
// It's tempting to call _screen->fullRefresh() here to restore the old
- // palette. However, that causes glitches with DXA movies, here the
+ // palette. However, that causes glitches with DXA movies, where the
// previous location would be momentarily drawn, before switching to
// the new one. Work around this by setting the palette to black.
- byte pal[3 * 256];
+ byte pal[4 * 256];
memset(pal, 0, sizeof(pal));
- _system->setPalette(pal, 0, 255);
+ _system->setPalette(pal, 0, 256);
}
void MoviePlayer::performPostProcessing(byte *screen) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list