From 78866d7bccabeb63f89106b7bf351535cb77487d Mon Sep 17 00:00:00 2001 From: loglot <88983354+loglot@users.noreply.github.com> Date: Fri, 1 Sep 2023 14:29:59 -0500 Subject: [PATCH] yyjgh --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 2b6e0d3..d4bb958 100644 --- a/main.js +++ b/main.js @@ -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);