cairo: Minor tweak for angle transforms

Need to swap angles before transforming or we get bad comparisons when
wrapping.
This commit is contained in:
Seth Hillbrand 2019-02-18 16:42:49 -08:00
parent 2151e195c7
commit 3a0dbffa9e
1 changed files with 1 additions and 2 deletions

View File

@ -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,