mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Respect direction when drawing arcs
This commit is contained in:
parent
a473f50245
commit
4d4e68ca6b
1 changed files with 5 additions and 2 deletions
|
@ -479,9 +479,12 @@ impl GenericPathBuilder for PathBuilder {
|
||||||
origin: Point2D<f32>,
|
origin: Point2D<f32>,
|
||||||
radius: f32,
|
radius: f32,
|
||||||
start_angle: f32,
|
start_angle: f32,
|
||||||
end_angle: f32,
|
mut end_angle: f32,
|
||||||
_anticlockwise: bool,
|
anticlockwise: bool,
|
||||||
) {
|
) {
|
||||||
|
if anticlockwise {
|
||||||
|
end_angle = -end_angle;
|
||||||
|
}
|
||||||
self.0
|
self.0
|
||||||
.as_mut()
|
.as_mut()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue