From 2522dd249bc30472a8a9a1ae12286cba6542ba9c Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Fri, 2 Dec 2022 23:18:17 +0000 Subject: [PATCH] js: Don't bother resizing offscreen canvas at startup It will get its size set soon enough once we know the size of the puzzle anyway. --- emccpre.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/emccpre.js b/emccpre.js index aebb9cf..942f933 100644 --- a/emccpre.js +++ b/emccpre.js @@ -245,8 +245,6 @@ function initPuzzle() { // Construct the off-screen canvas used for double buffering. onscreen_canvas = document.getElementById("puzzlecanvas"); offscreen_canvas = document.createElement("canvas"); - offscreen_canvas.width = onscreen_canvas.width; - offscreen_canvas.height = onscreen_canvas.height; // Stop right-clicks on the puzzle from popping up a context menu. // We need those right-clicks!