[Scummvm-cvs-logs] SF.net SVN: scummvm:[53375] scummvm/trunk/engines/sword25/gfx/image/ renderedimage.cpp

sev at users.sourceforge.net sev at users.sourceforge.net
Wed Oct 13 02:00:20 CEST 2010


Revision: 53375
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53375&view=rev
Author:   sev
Date:     2010-10-13 00:00:20 +0000 (Wed, 13 Oct 2010)

Log Message:
-----------
SWORD25: Fix transparency effects

Modified Paths:
--------------
    scummvm/trunk/engines/sword25/gfx/image/renderedimage.cpp

Modified: scummvm/trunk/engines/sword25/gfx/image/renderedimage.cpp
===================================================================
--- scummvm/trunk/engines/sword25/gfx/image/renderedimage.cpp	2010-10-12 23:59:49 UTC (rev 53374)
+++ scummvm/trunk/engines/sword25/gfx/image/renderedimage.cpp	2010-10-13 00:00:20 UTC (rev 53375)
@@ -275,6 +275,10 @@
 				int a = in[3];
 				in += inStep;
 
+				if (ca != 255) {
+					a = a * ca >> 8;
+				}
+
 				switch (a) {
 				case 0: // Full transparency
 					out += 4;


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