Skip to content

Commit

Permalink
Update lyon_geom to 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricedesre authored and jrmuizel committed Sep 15, 2023
1 parent 8bddfc5 commit f3a471f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors = ["Jeff Muizelaar <[email protected]>"]
edition = "2018"
name = "raqote"
version = "0.8.2"
version = "0.8.3"
description = "2D graphics library"
license = "BSD-3-Clause"
repository = "https://github.com/jrmuizel/raqote"
Expand All @@ -14,7 +14,7 @@ categories = ["graphics"]
[dependencies]
euclid = "0.22"
font-kit = { version = "0.11", optional = true }
lyon_geom = "0.17"
lyon_geom = "1.0"
pathfinder_geometry = { version = "0.5", optional = true }
png = { version = "0.17", optional = true }
typed-arena = "2.0"
Expand Down
3 changes: 1 addition & 2 deletions src/draw_target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use crate::geom::*;
use crate::path_builder::*;

pub use crate::path_builder::Winding;
use lyon_geom::cubic_to_quadratic::cubic_to_quadratics;
use lyon_geom::CubicBezierSegment;

#[cfg(feature = "text")]
Expand Down Expand Up @@ -500,7 +499,7 @@ impl<Backing : AsRef<[u32]> + AsMut<[u32]>> DrawTarget<Backing> {
ctrl2: cpt2,
to: pt,
};
cubic_to_quadratics(&c, 0.01, &mut |q| {
c.for_each_quadratic_bezier(0.01, &mut |q| {
let curve = [q.from, q.ctrl, q.to];
self.add_quad(curve);
});
Expand Down

0 comments on commit f3a471f

Please sign in to comment.