Skip to content

Commit

Permalink
Editor: fixed integer division error in ViewPreview
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-mogilko committed Oct 24, 2023
1 parent ead7d59 commit acc17e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Editor/AGS.Editor/Panes/ViewPreview.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ private void previewPanel_Paint(object sender, PaintEventArgs e)
Size spriteSize = Utilities.GetSizeSpriteWillBeRenderedInGame(spriteNum);
if (_autoFrameFill)
{
spriteSize = MathExtra.SafeScale(spriteSize, previewPanel.ClientSize.Height / spriteSize.Height);
spriteSize = MathExtra.SafeScale(spriteSize, (float)previewPanel.ClientSize.Height / spriteSize.Height);
}
else
{
Expand Down

0 comments on commit acc17e6

Please sign in to comment.