Skip to content

Commit

Permalink
drawRoundRect upper left corner fixed
Browse files Browse the repository at this point in the history
Checked in to solve:

#129
  • Loading branch information
IonSwitz committed Mar 2, 2015
1 parent f45e34a commit 04eafba
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions extension/src/starling/display/Graphics.as
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,16 @@ package starling.display
{
moveTo(x + strokePoints[i], y + strokePoints[i + 1]);
}
else if ( i == strokePoints.length - 2 )
{
var lastYPointOffset:Number = 0;
if ( topLeftRadius < _strokeThickness )
lastYPointOffset = topLeftRadius * 0.5;
else
lastYPointOffset = _strokeThickness * 0.5;

lineTo(x + strokePoints[i], y + strokePoints[i + 1] - lastYPointOffset);
}
else
{
lineTo(x + strokePoints[i], y + strokePoints[i + 1]);
Expand Down

0 comments on commit 04eafba

Please sign in to comment.