Skip to content

Commit

Permalink
Fix an issue in wgpu_svg example: quadratic bezier
Browse files Browse the repository at this point in the history
curve is rendered correctly.
  • Loading branch information
ButterPineappleBun authored and nical committed Sep 5, 2024
1 parent 3dc1c5a commit 642b4d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/wgpu_svg/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ impl<'l> Iterator for PathConvIter<'l> {
to: self.prev,
})
}
Some(tiny_skia_path::PathSegment::QuadTo(p1, p0)) => {
Some(tiny_skia_path::PathSegment::QuadTo(p0, p1)) => {
self.needs_end = true;
let from = self.prev;
self.prev = Point::new(p1.x, p1.y);
Expand Down

0 comments on commit 642b4d5

Please sign in to comment.