summaryrefslogtreecommitdiff
path: root/src/render/graphics.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/graphics.js')
-rw-r--r--src/render/graphics.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/graphics.js b/src/render/graphics.js
index 8a4cb1c..06d0b2c 100644
--- a/src/render/graphics.js
+++ b/src/render/graphics.js
@@ -52,4 +52,4 @@ game.graphics = (
return { clear, Sprite };
}
-)(document.getElementById("game-canvas").getContext("2d"));
+)(game.canvas.context);