Formatting.
This commit is contained in:
parent
e1a5d4e0ba
commit
e04c820442
|
@ -224,15 +224,15 @@ void TransformRoundRectToPolygon( SHAPE_POLY_SET& aCornerBuffer, const wxSize& a
|
|||
|
||||
auto genArc =
|
||||
[&]( const wxPoint& aCenter, int aStart, int aEnd )
|
||||
{
|
||||
for( int angle = aStart + delta; angle < aEnd; angle += delta )
|
||||
{
|
||||
wxPoint pt( -radius, 0 );
|
||||
RotatePoint( &pt, angle );
|
||||
pt += aCenter;
|
||||
outline.Append( pt.x, pt.y );
|
||||
}
|
||||
};
|
||||
{
|
||||
for( int angle = aStart + delta; angle < aEnd; angle += delta )
|
||||
{
|
||||
wxPoint pt( -radius, 0 );
|
||||
RotatePoint( &pt, angle );
|
||||
pt += aCenter;
|
||||
outline.Append( pt.x, pt.y );
|
||||
}
|
||||
};
|
||||
|
||||
outline.NewOutline();
|
||||
|
||||
|
|
Loading…
Reference in New Issue