Skip to content

Commit

Permalink
height/width fix
Browse files Browse the repository at this point in the history
  • Loading branch information
direwolf420 committed Nov 24, 2019
1 parent 2ba28c8 commit 5b942e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion UI/HistoryBookUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,9 @@ public override void Update(GameTime gameTime) {

DrawAnimation drawAnim = Main.itemAnimations[itemModel.ItemType];
if (drawAnim != null) {
height /= drawAnim.FrameCount;
sourceRect = drawAnim.GetFrame(texture);
height = sourceRect.Height;
width = sourceRect.Width;
}
else {
sourceRect = texture.Bounds;
Expand Down

0 comments on commit 5b942e1

Please sign in to comment.