diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2022-12-02 23:18:17 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2022-12-02 23:49:00 +0000 |
| commit | 2522dd249bc30472a8a9a1ae12286cba6542ba9c (patch) | |
| tree | faa6b02450f5b1104294c9ad9f3815b7a6e49138 /emccpre.js | |
| parent | 85dabc1eb97c4e144744f863d2e6f54555cc0db9 (diff) | |
| download | puzzles-2522dd249bc30472a8a9a1ae12286cba6542ba9c.zip puzzles-2522dd249bc30472a8a9a1ae12286cba6542ba9c.tar.gz puzzles-2522dd249bc30472a8a9a1ae12286cba6542ba9c.tar.bz2 puzzles-2522dd249bc30472a8a9a1ae12286cba6542ba9c.tar.xz | |
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.
Diffstat (limited to 'emccpre.js')
| -rw-r--r-- | emccpre.js | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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! |