summaryrefslogtreecommitdiffstats
path: root/examples/gallery/src/civitai.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-09 08:02:05 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-09 08:02:05 +0100
commitec4d007a4cafa005a61aa24a47960e5d639b5587 (patch)
tree65a88036bbf85c803615caa36f3123423483bfe5 /examples/gallery/src/civitai.rs
parent17395e83201d1e5e00be46c1fb1d6fa18f3d87f1 (diff)
downloadiced-ec4d007a4cafa005a61aa24a47960e5d639b5587.tar.gz
iced-ec4d007a4cafa005a61aa24a47960e5d639b5587.tar.bz2
iced-ec4d007a4cafa005a61aa24a47960e5d639b5587.zip
Simplify `gallery` example a bit
Diffstat (limited to 'examples/gallery/src/civitai.rs')
-rw-r--r--examples/gallery/src/civitai.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/gallery/src/civitai.rs b/examples/gallery/src/civitai.rs
index 8e57db3d..18d2a040 100644
--- a/examples/gallery/src/civitai.rs
+++ b/examples/gallery/src/civitai.rs
@@ -69,7 +69,7 @@ impl Image {
.split("/")
.map(|part| {
if part.starts_with("width=") {
- format!("width={width}")
+ format!("width={}", width * 2) // High DPI
} else {
part.to_owned()
}