Skip to content

Commit

Permalink
Fix image size in TSA editor
Browse files Browse the repository at this point in the history
  • Loading branch information
laqieer committed Oct 2, 2024
1 parent d3f8587 commit 9ac8996
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions FEBuilderGBA/ImageTSAEditorForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ public void Init(uint width8, uint height8, uint zimgPointer, bool isHeaderTSA,
this.Height8 = height8;
this.PaletteCount = paletteCount;

if (this.IsHeaderTSA)
{
this.Width8 = Math.Max(256 / 8, this.Width8);
this.Height8 = Math.Max(160 / 8, this.Height8);
}
//if (this.IsHeaderTSA)
//{
// this.Width8 = Math.Max(256 / 8, this.Width8);
// this.Height8 = Math.Max(160 / 8, this.Height8);
//}

if (this.PalettePointer == U.NOT_FOUND)
{
Expand Down

0 comments on commit 9ac8996

Please sign in to comment.