mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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>,
|
||||
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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue