Skip to content
Browse files

Fix #56 - arcTo used wrong currentPos

  • Loading branch information...
1 parent b162262 commit 231d8aa3b0155b5e94792f04a7848ccfc0183418 @phoboslab committed Nov 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Classes/Ejecta/EJCanvas/EJPath.mm
View
2 Classes/Ejecta/EJCanvas/EJPath.mm
@@ -240,7 +240,7 @@ - (void)arcToX1:(float)x1 y1:(float)y1 x2:(float)x2 y2:(float)y2 radius:(float)r
// I have no idea what this code is doing, but it seems to work.
// get untransformed currentPos
- EJVector2 cp = EJVector2ApplyTransform(EJVector2Make(x1, y1), CGAffineTransformInvert(transform));
+ EJVector2 cp = EJVector2ApplyTransform(currentPos, CGAffineTransformInvert(transform));
float a1 = cp.y - y1;
float b1 = cp.x - x1;

0 comments on commit 231d8aa

Please sign in to comment.
Something went wrong with that request. Please try again.