Mattia Rigo

Fixed circlePath positioning

@@ -33,8 +33,8 @@ @@ -33,8 +33,8 @@
33 CGFloat endAngle = clockwise ? -90.01f : 270.01f; 33 CGFloat endAngle = clockwise ? -90.01f : 270.01f;
34 34
35 _lineWidth = @8.0f; 35 _lineWidth = @8.0f;
36 - UIBezierPath *circlePath = [UIBezierPath bezierPathWithArcCenter:CGPointMake(self.center.x, self.center.y) 36 + UIBezierPath *circlePath = [UIBezierPath bezierPathWithArcCenter:CGPointMake(self.frame.size.width/2, self.frame.size.height/2)
37 - radius:self.frame.size.height * 0.5 37 + radius:(self.frame.size.height * 0.5) - [_lineWidth floatValue]
38 startAngle:DEGREES_TO_RADIANS(startAngle) 38 startAngle:DEGREES_TO_RADIANS(startAngle)
39 endAngle:DEGREES_TO_RADIANS(endAngle) 39 endAngle:DEGREES_TO_RADIANS(endAngle)
40 clockwise:clockwise]; 40 clockwise:clockwise];