[Scummvm-cvs-logs] SF.net SVN: scummvm:[35387] scummvm/trunk/graphics/smk_player.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Mon Dec 15 23:49:55 CET 2008


Revision: 35387
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35387&view=rev
Author:   thebluegr
Date:     2008-12-15 22:49:55 +0000 (Mon, 15 Dec 2008)

Log Message:
-----------
Initialize palette when loading a new Smacker file - all palette colors should show correctly now

Modified Paths:
--------------
    scummvm/trunk/graphics/smk_player.cpp

Modified: scummvm/trunk/graphics/smk_player.cpp
===================================================================
--- scummvm/trunk/graphics/smk_player.cpp	2008-12-15 21:13:28 UTC (rev 35386)
+++ scummvm/trunk/graphics/smk_player.cpp	2008-12-15 22:49:55 UTC (rev 35387)
@@ -412,6 +412,7 @@
 
 	_image = (byte *)malloc(2 * _header.width * _header.height);
 	_palette = (byte *)malloc(3 * 256);
+	memset(_palette, 0, 3 * 256);
 
 	return true;
 }


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