From 327ae01123eb35340903eb73a2ec02aa80d74de1 Mon Sep 17 00:00:00 2001 From: slweeb <91897291+slweeb@users.noreply.github.com> Date: Wed, 16 Nov 2022 22:17:16 -0500 Subject: [PATCH] fix for 1.6.5 --- mods/runAfterAutogen and onload restructure.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mods/runAfterAutogen and onload restructure.js b/mods/runAfterAutogen and onload restructure.js index ee1e845f..e3ad3daa 100644 --- a/mods/runAfterAutogen and onload restructure.js +++ b/mods/runAfterAutogen and onload restructure.js @@ -437,6 +437,9 @@ function setCanvasWidthAndHeight(ctx) { if (window.innerWidth > 1000 && newHeight > 500) { newHeight = 500; } ctx.canvas.width = newWidth; ctx.canvas.height = newHeight; + document.getElementById("gameDiv").style.width = newWidth + "px"; + document.getElementById("loadingP").style.display = "none"; + document.getElementById("canvasDiv").style.display = "block"; width = Math.round(newWidth/pixelSize)-1; height = Math.round(newHeight/pixelSize)-1;