From 4ec3b5e387b194c19fef68d4301f288cad4eb532 Mon Sep 17 00:00:00 2001 From: Andrew Hankinson Date: Mon, 18 Feb 2013 23:02:28 -0500 Subject: [PATCH] This fix adds a missing `isClockwise` property Without this fix, the isClockwise property is not stored for use in CGPathAddPath. C.F. https://github.com/cappuccino/cappuccino/blob/master/AppKit/CoreGraphics/CGPath.j#L195 This is a partial fix for #578. --- AppKit/CoreGraphics/CGPath.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CoreGraphics/CGPath.j b/AppKit/CoreGraphics/CGPath.j index b84b7a90b..9f7f7bc92 100644 --- a/AppKit/CoreGraphics/CGPath.j +++ b/AppKit/CoreGraphics/CGPath.j @@ -113,7 +113,7 @@ function CGPathAddArc(aPath, aTransform, x, y, aRadius, aStartAngle, anEndAngle, } aPath.current = _CGPointMake(x + aRadius * COS(anEndAngle), y + aRadius * SIN(anEndAngle)); - aPath.elements[aPath.count++] = { type:kCGPathElementAddArc, x:x, y:y, radius:aRadius, startAngle:aStartAngle, endAngle:anEndAngle }; + aPath.elements[aPath.count++] = { type:kCGPathElementAddArc, x:x, y:y, radius:aRadius, startAngle:aStartAngle, endAngle:anEndAngle, isClockwise:isClockwise}; } function CGPathAddArcToPoint(aPath, aTransform, x1, y1, x2, y2, aRadius)