8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a093d7 commit d222776Copy full SHA for d222776
src/gamejs/display.js
@@ -255,6 +255,8 @@ var getSurface = exports.getSurface = function() {
255
var canvas = getCanvas();
256
SURFACE = new Surface([canvas.clientWidth, canvas.clientHeight]);
257
SURFACE._canvas = canvas;
258
+ SURFACE._canvas.width = canvas.clientWidth;
259
+ SURFACE._canvas.height = 4FB0 canvas.clientHeight;
260
SURFACE._context = canvas.getContext('2d');
261
if (!(_flags & DISABLE_SMOOTHING)) {
262
SURFACE._smooth();
0 commit comments