Skip to content

Commit

Permalink
(GAN): hard-coded default image width and height.
Browse files Browse the repository at this point in the history
currently there's no way to tell what image actual dimensions are.
  • Loading branch information
morkt committed Mar 30, 2020
1 parent ad22d60 commit e061687
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ArcFormats/Ikura/ArcGAN.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,13 @@ internal class GanFrameArchive : ArcFile
public readonly ImageMetaData Info;
byte[][] Frames;

const uint DefaultWidth = 800;
const uint DefaultHeight = 600;

public GanFrameArchive (ArcView arc, ArchiveFormat impl, ICollection<Entry> 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][];
}

Expand Down

0 comments on commit e061687

Please sign in to comment.