From 048ebdcee5d48592b6d1b669e9db0a9ba030d859 Mon Sep 17 00:00:00 2001 From: Dylan Date: Mon, 14 Sep 2026 23:43:03 +1200 Subject: feat: PNG decoding works somewhat Uses zlib-rs --- src/image.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/image.rs') diff --git a/src/image.rs b/src/image.rs index fa1a18d..40cfe01 100644 --- a/src/image.rs +++ b/src/image.rs @@ -115,8 +115,7 @@ impl ops::Index<(usize, usize)> for PixelArr { type Output = T; - fn index(&self, index: (usize, usize)) -> &Self::Output { - let (x, y) = index; + fn index(&self, (x, y): (usize, usize)) -> &Self::Output { &self.raw[x + y*(self.width as usize)] } } -- cgit v1.3.1