Skip to content

Commit

Permalink
Fix TSA animation editor
Browse files Browse the repository at this point in the history
  • Loading branch information
laqieer committed Oct 2, 2024
1 parent c37daed commit 35d7cca
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions FEBuilderGBA/ImageTSAAnimeForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,11 @@ public static Bitmap DrawTSAAnime(uint image, uint palette, uint tsa)

byte[] imageUZ = LZ77.decompress(Program.ROM.Data, U.toOffset(image));
byte[] tsaUZ = LZ77.decompress(Program.ROM.Data, U.toOffset(tsa));
int height = ImageUtil.CalcHeightbyTSA(32 * 8, tsaUZ.Length);
Debug.Assert(height >= 20*8);
//int height = ImageUtil.CalcHeightbyTSA(30 * 8, tsaUZ.Length);
//Debug.Assert(height >= 20*8);
int height = 20 * 8;

return ImageUtil.ByteToImage16TileHeaderTSA(32 * 8, height, imageUZ, 0, Program.ROM.Data, (int)U.toOffset(palette), tsaUZ, 0);
return ImageUtil.ByteToImage16TileHeaderTSA(30 * 8, height, imageUZ, 0, Program.ROM.Data, (int)U.toOffset(palette), tsaUZ, 0);
}

private void ExportButton_Click(object sender, EventArgs e)
Expand Down

0 comments on commit 35d7cca

Please sign in to comment.