Skip to content

Commit

Permalink
Bump pango, cairo to v0.18 (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
flxzt authored Jul 24, 2023
1 parent 24acaf6 commit 303b9a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions piet-cairo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ categories = ["rendering::graphics-api"]
[dependencies]
piet = { version = "=0.6.2", path = "../piet" }

cairo-rs = { version = "0.17.0", default-features = false } # We don't need glib
pango = { version = "0.17.0", features = ["v1_44"] }
pangocairo = "0.17.0"
cairo-rs = { version = "0.18.0", default-features = false } # We don't need glib
pango = { version = "0.18.0", features = ["v1_44"] }
pangocairo = "0.18.0"
unicode-segmentation = "1.10.0"
xi-unicode = "0.3.0"

Expand Down
4 changes: 2 additions & 2 deletions piet-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ png = { version = "0.17.7", optional = true }

[target.'cfg(any(target_os="linux", target_os="openbsd", target_os="freebsd", target_os="netbsd"))'.dependencies]
piet-cairo = { version = "=0.6.2", path = "../piet-cairo" }
cairo-rs = { version = "0.17.0", default_features = false }
cairo-sys-rs = { version = "0.17.0" }
cairo-rs = { version = "0.18.0", default_features = false }
cairo-sys-rs = { version = "0.18.0" }

[target.'cfg(any(target_os="macos", target_os="ios"))'.dependencies]
piet-coregraphics = { version = "=0.6.2", path = "../piet-coregraphics" }
Expand Down
2 changes: 1 addition & 1 deletion piet-web/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ impl WebRenderContext<'_> {
fn set_stroke(&mut self, width: f64, style: Option<&StrokeStyle>) {
let default_style = StrokeStyle::default();
let style = style.unwrap_or(&default_style);
let mut canvas_state = self.canvas_states.last_mut().unwrap();
let canvas_state = self.canvas_states.last_mut().unwrap();

if width != canvas_state.line_width {
self.ctx.set_line_width(width);
Expand Down

0 comments on commit 303b9a9

Please sign in to comment.