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

sev at users.sourceforge.net sev at users.sourceforge.net
Wed Oct 13 01:37:56 CEST 2010


Revision: 53323
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53323&view=rev
Author:   sev
Date:     2010-10-12 23:37:56 +0000 (Tue, 12 Oct 2010)

Log Message:
-----------
SWORD25: bugfix for vector images

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

Modified: scummvm/trunk/engines/sword25/gfx/image/vectorimage.cpp
===================================================================
--- scummvm/trunk/engines/sword25/gfx/image/vectorimage.cpp	2010-10-12 23:37:35 UTC (rev 53322)
+++ scummvm/trunk/engines/sword25/gfx/image/vectorimage.cpp	2010-10-12 23:37:56 UTC (rev 53323)
@@ -444,20 +444,20 @@
 				double anchorDeltaX = bs.getSignedBits(numBits);
 				double anchorDeltaY = bs.getSignedBits(numBits);
 
-				double newX = curX + controlDeltaX;
-				double newY = curY + controlDeltaY;
-				double anchorX = newX + anchorDeltaX;
-				double anchorY = newY + anchorDeltaY;
+				double controlX = curX + controlDeltaX;
+				double controlY = curY + controlDeltaY;
+				double newX = controlX + anchorDeltaX;
+				double newY = controlY + anchorDeltaY;
 
 #define WEIGHT (2.0/3.0)
 
 				bezNodes++;
 				bez = ensureBezStorage(bez, bezNodes, &bezAllocated);
 				bez[bezNodes].code = ART_CURVETO;
-				bez[bezNodes].x1 = WEIGHT * anchorX + (1 - WEIGHT) * curX;
-				bez[bezNodes].y1 = WEIGHT * anchorY + (1 - WEIGHT) * curY;
-				bez[bezNodes].x2 = WEIGHT * anchorX + (1 - WEIGHT) * newX;
-				bez[bezNodes].y2 = WEIGHT * anchorY + (1 - WEIGHT) * newY;
+				bez[bezNodes].x1 = WEIGHT * controlX + (1 - WEIGHT) * curX;
+				bez[bezNodes].y1 = WEIGHT * controlY + (1 - WEIGHT) * curY;
+				bez[bezNodes].x2 = WEIGHT * controlX + (1 - WEIGHT) * newX;
+				bez[bezNodes].y2 = WEIGHT * controlY + (1 - WEIGHT) * newY;
 				bez[bezNodes].x3 = newX;
 				bez[bezNodes].y3 = newY;
 


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