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

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Fri Dec 19 14:55:55 CET 2008


Revision: 35438
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35438&view=rev
Author:   drmccoy
Date:     2008-12-19 13:55:55 +0000 (Fri, 19 Dec 2008)

Log Message:
-----------
memset()ing the output image with 0 at the start

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

Modified: scummvm/trunk/graphics/smk_player.cpp
===================================================================
--- scummvm/trunk/graphics/smk_player.cpp	2008-12-19 12:03:22 UTC (rev 35437)
+++ scummvm/trunk/graphics/smk_player.cpp	2008-12-19 13:55:55 UTC (rev 35438)
@@ -485,6 +485,7 @@
 	_TypeTree = new BigHuffmanTree(bs);
 
 	_image = (byte *)malloc(2 * _header.width * _header.height);
+	memset(_image, 0, 2 * _header.width * _header.height);
 	_palette = (byte *)malloc(3 * 256);
 	memset(_palette, 0, 3 * 256);
 


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