summaryrefslogtreecommitdiffstats
path: root/tiny_skia/src/backend.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2023-07-12 09:24:35 +0200
committerLibravatar GitHub <noreply@github.com>2023-07-12 09:24:35 +0200
commite96fe1443da5882285729b9e9c041ff34fbe5485 (patch)
treeae76a80eacd961b5d8919e2771f3765ffa95c8be /tiny_skia/src/backend.rs
parent9f2be29a286d435b3d1daa8025a74063c50713cb (diff)
parent5dd923402e07578a0002884ac14044fe8762f8b0 (diff)
downloadiced-e96fe1443da5882285729b9e9c041ff34fbe5485.tar.gz
iced-e96fe1443da5882285729b9e9c041ff34fbe5485.tar.bz2
iced-e96fe1443da5882285729b9e9c041ff34fbe5485.zip
Merge pull request #1907 from alec-deason/master
Update `resvg` to `0.35` and `tiny-skia` to `0.10`
Diffstat (limited to 'tiny_skia/src/backend.rs')
-rw-r--r--tiny_skia/src/backend.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/tiny_skia/src/backend.rs b/tiny_skia/src/backend.rs
index e0134220..a8add70b 100644
--- a/tiny_skia/src/backend.rs
+++ b/tiny_skia/src/backend.rs
@@ -753,7 +753,15 @@ fn adjust_clip_mask(clip_mask: &mut tiny_skia::Mask, bounds: Rectangle) {
let path = {
let mut builder = tiny_skia::PathBuilder::new();
- builder.push_rect(bounds.x, bounds.y, bounds.width, bounds.height);
+ builder.push_rect(
+ tiny_skia::Rect::from_xywh(
+ bounds.x,
+ bounds.y,
+ bounds.width,
+ bounds.height,
+ )
+ .unwrap(),
+ );
builder.finish().unwrap()
};