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() })