cairo: Minor tweak for angle transforms
Need to swap angles before transforming or we get bad comparisons when wrapping.
This commit is contained in:
parent
2151e195c7
commit
3a0dbffa9e
|
@ -258,11 +258,10 @@ void CAIRO_GAL_BASE::DrawArc( const VECTOR2D& aCenterPoint, double aRadius, doub
|
|||
{
|
||||
syncLineWidth();
|
||||
|
||||
SWAP( aStartAngle, >, aEndAngle );
|
||||
auto startAngleS = angle_xform( aStartAngle );
|
||||
auto endAngleS = angle_xform( aEndAngle );
|
||||
|
||||
SWAP( startAngleS, >, endAngleS );
|
||||
|
||||
VECTOR2D startPoint( cos( startAngleS ) * aRadius + aCenterPoint.x,
|
||||
sin( startAngleS ) * aRadius + aCenterPoint.y );
|
||||
VECTOR2D endPoint( cos( endAngleS ) * aRadius + aCenterPoint.x,
|
||||
|
|
Loading…
Reference in New Issue