Skip to content

Commit

Permalink
Fix BG & CG editor
Browse files Browse the repository at this point in the history
  • Loading branch information
laqieer committed Oct 2, 2024
1 parent fb1dd65 commit c37daed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion FEBuilderGBA/ImageBGForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public static Bitmap DrawBG(uint image, uint palette,uint tsa)

{
byte[] imageUZ = LZ77.decompress(Program.ROM.Data, U.toOffset(image));
return ImageUtil.ByteToImage16TileHeaderTSA(32 * 8, 20 * 8, imageUZ, 0, Program.ROM.Data, (int)U.toOffset(palette), Program.ROM.Data, (int)U.toOffset(tsa));
return ImageUtil.ByteToImage16TileHeaderTSA(30 * 8, 20 * 8, imageUZ, 0, Program.ROM.Data, (int)U.toOffset(palette), Program.ROM.Data, (int)U.toOffset(tsa));
}
}
public static Bitmap DrawBG(uint id)
Expand Down
2 changes: 1 addition & 1 deletion FEBuilderGBA/ImageCGFE7UForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ static Bitmap DrawOneImage(uint image, uint tsa, uint palette)

byte[] imageUZ = LZ77.decompress(Program.ROM.Data, U.toOffset(image));

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

private void AddressList_SelectedIndexChanged(object sender, EventArgs e)
Expand Down
2 changes: 1 addition & 1 deletion FEBuilderGBA/ImageCGForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public static Bitmap DrawImage(uint table, uint tsa, uint palette)
byte[] imageUZ = LZ77.decompress(Program.ROM.Data, U.toOffset(image));
imageUZList.AddRange(imageUZ);
}
return ImageUtil.ByteToImage16TileHeaderTSA(32 * 8, 20 * 8, imageUZList.ToArray(), 0, Program.ROM.Data, (int)U.toOffset(palette), Program.ROM.Data, (int)U.toOffset(tsa));
return ImageUtil.ByteToImage16TileHeaderTSA(30 * 8, 20 * 8, imageUZList.ToArray(), 0, Program.ROM.Data, (int)U.toOffset(palette), Program.ROM.Data, (int)U.toOffset(tsa));
}
public static Bitmap DrawImageByID(uint id)
{
Expand Down

0 comments on commit c37daed

Please sign in to comment.