Skip to content

Commit

Permalink
Merge pull request #2391 from Wang-Yue/patch-2
Browse files Browse the repository at this point in the history
Fix typo in max scale calculation
  • Loading branch information
nesbox authored Dec 9, 2023
2 parents 1b76a6e + e0b1fdc commit 6a54f1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system/sdl/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1825,7 +1825,7 @@ s32 determineMaximumScale()
int maxScaleByW = current.w / TIC80_WIDTH;
int maxScaleByH = current.h / TIC80_HEIGHT;

if (maxScaleByW < maxScaleByW)
if (maxScaleByH < maxScaleByW)
{
maxScale = maxScaleByW;
}
Expand Down

0 comments on commit 6a54f1c

Please sign in to comment.