fix for 1.6.5

This commit is contained in:
slweeb 2022-11-16 22:17:16 -05:00
parent 7ca169c6df
commit 327ae01123
1 changed files with 3 additions and 0 deletions

View File

@ -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;