From c96a1cbdd1ed6fcc1de379299c86b2cac5444594 Mon Sep 17 00:00:00 2001 From: electria Date: Thu, 30 Jul 2026 22:54:56 -0700 Subject: [PATCH] feat: default to FilterMethod::Nearest on small image helps make pixelart sharp without the need to change it yourself --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index 4168550..9d88b1d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -164,6 +164,9 @@ impl State { image.width(), image.height(), )); + if image.dimensions() < (100, 100) { + self.image_filter = widget::image::FilterMethod::Nearest; + } self.image = Some(image); self.allocate_image() })