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.
This commit is contained in:
Ben Harris
2022-12-02 23:18:17 +00:00
parent 85dabc1eb9
commit 2522dd249b

View File

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