Make arc() use anticlockwise argument

This commit is contained in:
pylbrecht 2019-12-02 14:32:17 +01:00
parent da9b4c33cd
commit 02e3325416

View file

@ -492,9 +492,10 @@ impl GenericPathBuilder for PathBuilder {
mut end_angle: f32, mut end_angle: f32,
anticlockwise: bool, anticlockwise: bool,
) { ) {
if anticlockwise { if (anticlockwise && end_angle > 0.) || (!anticlockwise && end_angle < 0.) {
end_angle = -end_angle; end_angle = -end_angle;
} }
self.0 self.0
.as_mut() .as_mut()
.unwrap() .unwrap()