diff options
author | Eugene Sandulenko | 2010-09-05 21:30:00 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-10-12 23:37:56 +0000 |
commit | 7db8be5d4d10f47d987d90709710142a510016fd (patch) | |
tree | 02042984c29b6cc1d9d3f3e58ae32bb8bfe80cf0 /engines | |
parent | 7ad20e33378673b7e4c1c3ebcf602c22cdb95e61 (diff) | |
download | scummvm-rg350-7db8be5d4d10f47d987d90709710142a510016fd.tar.gz scummvm-rg350-7db8be5d4d10f47d987d90709710142a510016fd.tar.bz2 scummvm-rg350-7db8be5d4d10f47d987d90709710142a510016fd.zip |
SWORD25: bugfix for vector images
svn-id: r53323
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sword25/gfx/image/vectorimage.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/sword25/gfx/image/vectorimage.cpp b/engines/sword25/gfx/image/vectorimage.cpp index 5e95502748..a24c702e6b 100644 --- a/engines/sword25/gfx/image/vectorimage.cpp +++ b/engines/sword25/gfx/image/vectorimage.cpp @@ -444,20 +444,20 @@ bool VectorImage::parseDefineShape(uint shapeType, SWFBitStream &bs) { 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; |