From f676fd613e8bc785e4890c711ed446109a20e1d2 Mon Sep 17 00:00:00 2001 From: morkt Date: Mon, 19 Oct 2015 17:06:49 +0400 Subject: [PATCH] (PngFormat): fixed oFFs chunk CRC calculation. --- GameRes/ImagePNG.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameRes/ImagePNG.cs b/GameRes/ImagePNG.cs index 2f669557..4a780e4e 100644 --- a/GameRes/ImagePNG.cs +++ b/GameRes/ImagePNG.cs @@ -94,7 +94,7 @@ namespace GameRes bin.Write (Binary.BigEndian ((uint)image.OffsetY)); bin.Write ((byte)0); bin.Flush(); - uint crc = Crc32.Compute (membuf.GetBuffer(), 8, 9); + uint crc = Crc32.Compute (membuf.GetBuffer(), 4, 13); bin.Write (Binary.BigEndian (crc)); } file.Write (membuf.GetBuffer(), 0, 9+12); // chunk + size+id+crc