1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 06:40:06 -04:00

Update usvg and resvg

This commit is contained in:
Emil Ernerfeldt
2022-07-03 18:45:34 +02:00
parent bfb5c4bdf2
commit f2e6003991
3 changed files with 9 additions and 9 deletions

View File

@@ -59,9 +59,9 @@ document-features = { version = "0.2", optional = true }
image = { version = "0.24", optional = true, default-features = false }
# svg feature
resvg = { version = "0.22", optional = true }
resvg = { version = "0.23", optional = true }
tiny-skia = { version = "0.6", optional = true }
usvg = { version = "0.22", optional = true }
usvg = { version = "0.23", optional = true }
# feature "serde":
serde = { version = "1", features = ["derive"], optional = true }

View File

@@ -194,7 +194,7 @@ pub fn load_svg_bytes(svg_bytes: &[u8]) -> Result<egui::ColorImage, String> {
resvg::render(
&rtree,
usvg::FitTo::Original,
tiny_skia::Transform::default(),
Default::default(),
pixmap.as_mut(),
)
.ok_or_else(|| "Failed to render SVG".to_owned())?;