From 14360b94642d9e65d3bf6578ae368369ec1bc1f6 Mon Sep 17 00:00:00 2001 From: G2-Games Date: Sun, 5 May 2024 05:20:25 -0500 Subject: [PATCH] Fixed error in CZ2 saving --- cz/src/formats/cz2.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cz/src/formats/cz2.rs b/cz/src/formats/cz2.rs index 0fd5bcc..0f84b50 100644 --- a/cz/src/formats/cz2.rs +++ b/cz/src/formats/cz2.rs @@ -119,7 +119,7 @@ impl CzImage for Cz2Image { fn save_as_png(&self, name: &str) -> Result<(), image::error::ImageError> { let img = image::RgbaImage::from_raw( - self.header.width() as u32 - 1, + self.header.width() as u32, self.header.height() as u32, self.bitmap.clone(), ).unwrap();