Skip to content

Commit

Permalink
yyjgh
Browse files Browse the repository at this point in the history
  • Loading branch information
loglot authored Sep 1, 2023
1 parent 30f753a commit 78866d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ var scaleY = 0;
if (currentHeight >= windowHeight) {
desiredHeight = windowHeight;
aspectRatio = originalWidth / originalHeight;
desiredWidth = desiredHeight / aspectRatio;
desiredWidth = desiredHeight * aspectRatio;
canvas.width = desiredWidth;
canvas.height = desiredHeight;
scaleX = (desiredWidth / originalWidth);
Expand Down

0 comments on commit 78866d7

Please sign in to comment.