From e061687816326cdbc42c7c08215871426b1b7f47 Mon Sep 17 00:00:00 2001 From: morkt Date: Mon, 30 Mar 2020 17:29:28 +0400 Subject: [PATCH] (GAN): hard-coded default image width and height. currently there's no way to tell what image actual dimensions are. --- ArcFormats/Ikura/ArcGAN.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ArcFormats/Ikura/ArcGAN.cs b/ArcFormats/Ikura/ArcGAN.cs index 03f84a3e..0a0cf136 100644 --- a/ArcFormats/Ikura/ArcGAN.cs +++ b/ArcFormats/Ikura/ArcGAN.cs @@ -92,10 +92,13 @@ namespace GameRes.Formats.Ikura public readonly ImageMetaData Info; byte[][] Frames; + const uint DefaultWidth = 800; + const uint DefaultHeight = 600; + public GanFrameArchive (ArcView arc, ArchiveFormat impl, ICollection dir) : base (arc, impl, dir) { - Info = new ImageMetaData { Width = 640, Height = 480, BPP = 24 }; + Info = new ImageMetaData { Width = DefaultWidth, Height = DefaultHeight, BPP = 24 }; Frames = new byte[dir.Count][]; }