Respect direction when drawing arcs

This commit is contained in:
pylbrecht 2019-11-19 15:18:23 +01:00
parent a473f50245
commit 4d4e68ca6b

View file

@ -479,9 +479,12 @@ impl GenericPathBuilder for PathBuilder {
origin: Point2D<f32>,
radius: f32,
start_angle: f32,
end_angle: f32,
_anticlockwise: bool,
mut end_angle: f32,
anticlockwise: bool,
) {
if anticlockwise {
end_angle = -end_angle;
}
self.0
.as_mut()
.unwrap()