[Scummvm-cvs-logs] SF.net SVN: scummvm: [29830] scummvm/trunk/engines/cine/anim.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Wed Dec 12 00:16:15 CET 2007


Revision: 29830
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29830&view=rev
Author:   thebluegr
Date:     2007-12-11 15:16:15 -0800 (Tue, 11 Dec 2007)

Log Message:
-----------
Cleanup

Modified Paths:
--------------
    scummvm/trunk/engines/cine/anim.cpp

Modified: scummvm/trunk/engines/cine/anim.cpp
===================================================================
--- scummvm/trunk/engines/cine/anim.cpp	2007-12-11 23:06:12 UTC (rev 29829)
+++ scummvm/trunk/engines/cine/anim.cpp	2007-12-11 23:16:15 UTC (rev 29830)
@@ -237,29 +237,21 @@
 
 		animDataTable[i].ptr1 = (byte *)malloc(frameSize);
 		animDataTable[i].ptr2 = (byte *)malloc(frameSize);
-
-		animDataTable[i].width = width;
-		animDataTable[i].var1 = width >> 3;
-		animDataTable[i].bpp = 4;
-		animDataTable[i].height = height;
-
-		animDataTable[i].fileIdx = -1;
-		animDataTable[i].frameIdx = -1;
 	} else {
 		// mask
 		frameSize = width * height * 8;
 
 		animDataTable[i].ptr1 = (byte *)malloc(frameSize);
 		animDataTable[i].ptr2 = NULL;
+	}
 
-		animDataTable[i].width = width;
-		animDataTable[i].var1 = width >> 3;
-		animDataTable[i].bpp = 4;
-		animDataTable[i].height = height;
+	animDataTable[i].width = width;
+	animDataTable[i].var1 = width >> 3;
+	animDataTable[i].bpp = 4;
+	animDataTable[i].height = height;
 
-		animDataTable[i].fileIdx = -1;
-		animDataTable[i].frameIdx = -1;
-	}
+	animDataTable[i].fileIdx = -1;
+	animDataTable[i].frameIdx = -1;
 
 	animDataCount++;
 


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