[Scummvm-cvs-logs] SF.net SVN: scummvm:[50314] scummvm/trunk/engines/m4/graphics.cpp

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Sat Jun 26 13:31:05 CEST 2010


Revision: 50314
          http://scummvm.svn.sourceforge.net/scummvm/?rev=50314&view=rev
Author:   dreammaster
Date:     2010-06-26 11:31:04 +0000 (Sat, 26 Jun 2010)

Log Message:
-----------
Bugfix to correctly handle transparency when rendering scaled sprites

Modified Paths:
--------------
    scummvm/trunk/engines/m4/graphics.cpp

Modified: scummvm/trunk/engines/m4/graphics.cpp
===================================================================
--- scummvm/trunk/engines/m4/graphics.cpp	2010-06-26 11:16:25 UTC (rev 50313)
+++ scummvm/trunk/engines/m4/graphics.cpp	2010-06-26 11:31:04 UTC (rev 50314)
@@ -547,7 +547,7 @@
 				// Not a display pixel
 				continue;
 
-			if (depth <= *depthP)
+			if ((*srcP != transparentColour) && (depth <= *depthP))
 				*destP = *srcP;
 
 			++destP;


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