mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Make arc() use anticlockwise
argument
This commit is contained in:
parent
da9b4c33cd
commit
02e3325416
1 changed files with 2 additions and 1 deletions
|
@ -492,9 +492,10 @@ impl GenericPathBuilder for PathBuilder {
|
|||
mut end_angle: f32,
|
||||
anticlockwise: bool,
|
||||
) {
|
||||
if anticlockwise {
|
||||
if (anticlockwise && end_angle > 0.) || (!anticlockwise && end_angle < 0.) {
|
||||
end_angle = -end_angle;
|
||||
}
|
||||
|
||||
self.0
|
||||
.as_mut()
|
||||
.unwrap()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue