[Scummvm-cvs-logs] SF.net SVN: scummvm:[39480] scummvm/trunk/engines/sword1/screen.cpp

Hkz at users.sourceforge.net Hkz at users.sourceforge.net
Tue Mar 17 10:21:15 CET 2009


Revision: 39480
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39480&view=rev
Author:   Hkz
Date:     2009-03-17 09:21:14 +0000 (Tue, 17 Mar 2009)

Log Message:
-----------
sword1: clean background buffers before writing on them in psx decoding functions

Modified Paths:
--------------
    scummvm/trunk/engines/sword1/screen.cpp

Modified: scummvm/trunk/engines/sword1/screen.cpp
===================================================================
--- scummvm/trunk/engines/sword1/screen.cpp	2009-03-17 08:22:51 UTC (rev 39479)
+++ scummvm/trunk/engines/sword1/screen.cpp	2009-03-17 09:21:14 UTC (rev 39480)
@@ -858,6 +858,7 @@
 
 	uint8 *decomp_tile = (uint8 *)malloc(16 * 16); //Tiles are always 16 * 16
 	uint8 *fullres_buffer = (uint8 *)malloc(bakXres * yresInTiles * 32);
+	memset(fullres_buffer, 0, bakXres * yresInTiles * 32);
 
 	bool isCompressed = (tag == 0x434F4D50);
 
@@ -899,6 +900,7 @@
 
 	uint8 *decomp_tile = (uint8 *)malloc(16 * 16); //Tiles are always 16 * 16
 	uint8 *fullres_buffer = (uint8 *)malloc(bakXres * (yresInTiles + 1) * 32);
+	memset(fullres_buffer, 0, bakXres * (yresInTiles + 1) * 32);
 
 	bool isCompressed = (READ_LE_UINT32(psxBackground) == MKID_BE('COMP'));
 


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