mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 18:29:09 +00:00
Bump resvg/usvg/tiny-skia dependencies
This commit is contained in:
parent
cecdb330f8
commit
65e4e7bf15
4 changed files with 11 additions and 12 deletions
|
@ -55,9 +55,9 @@ fontdue = { version = "0.7.1" }
|
|||
# for processing and embedding the rendered image (texture)
|
||||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
||||
image = "0.24"
|
||||
tiny-skia = "0.6.1"
|
||||
resvg = "0.23"
|
||||
usvg = "0.23"
|
||||
tiny-skia = "0.8.2"
|
||||
resvg = "0.25"
|
||||
usvg = "0.25"
|
||||
|
||||
[target.'cfg(not(any(target_family = "windows", target_os = "macos", target_os = "ios", target_arch = "wasm32")))'.dependencies]
|
||||
libc = { version = "0.2" }
|
||||
|
|
|
@ -282,7 +282,7 @@ fn load_image(
|
|||
))
|
||||
})?;
|
||||
// TODO: ideally we should find the size used for that `Image`
|
||||
let original_size = tree.svg_node().size;
|
||||
let original_size = tree.size;
|
||||
let width = original_size.width() * scale_factor;
|
||||
let height = original_size.height() * scale_factor;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue