[Scummvm-cvs-logs] SF.net SVN: scummvm:[42690] scummvm/trunk/graphics/video/coktelvideo/ coktelvideo.cpp

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Fri Jul 24 12:45:25 CEST 2009


Revision: 42690
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42690&view=rev
Author:   drmccoy
Date:     2009-07-24 10:45:25 +0000 (Fri, 24 Jul 2009)

Log Message:
-----------
Adding transparency for VMD video block type 2, fixing bug #2037158 ("n-Game animation shifted(?)"). The problem was that the animation in question has an one pixel wide transparent bar on the left

Modified Paths:
--------------
    scummvm/trunk/graphics/video/coktelvideo/coktelvideo.cpp

Modified: scummvm/trunk/graphics/video/coktelvideo/coktelvideo.cpp
===================================================================
--- scummvm/trunk/graphics/video/coktelvideo/coktelvideo.cpp	2009-07-24 08:51:23 UTC (rev 42689)
+++ scummvm/trunk/graphics/video/coktelvideo/coktelvideo.cpp	2009-07-24 10:45:25 UTC (rev 42690)
@@ -1511,7 +1511,10 @@
 		int16 h = MIN(height, sH);
 
 		for (int i = 0; i < h; i++) {
-			memcpy(dest, srcPtr, w);
+			for (int j = 0; j < w; j++)
+				if (srcPtr[j])
+					dest[j] = srcPtr[j];
+
 			srcPtr += postScaleX(width);
 			dest += sW;
 		}


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