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 =
|
auto genArc =
|
||||||
[&]( const wxPoint& aCenter, int aStart, int aEnd )
|
[&]( const wxPoint& aCenter, int aStart, int aEnd )
|
||||||
{
|
{
|
||||||
for( int angle = aStart + delta; angle < aEnd; angle += delta )
|
for( int angle = aStart + delta; angle < aEnd; angle += delta )
|
||||||
{
|
{
|
||||||
wxPoint pt( -radius, 0 );
|
wxPoint pt( -radius, 0 );
|
||||||
RotatePoint( &pt, angle );
|
RotatePoint( &pt, angle );
|
||||||
pt += aCenter;
|
pt += aCenter;
|
||||||
outline.Append( pt.x, pt.y );
|
outline.Append( pt.x, pt.y );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
outline.NewOutline();
|
outline.NewOutline();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue