From 11b72e61c01d54f8da5b88379bde2a4c0aa32cff Mon Sep 17 00:00:00 2001 From: Erico Vieira Porto Date: Sun, 30 Oct 2016 21:03:44 -0200 Subject: [PATCH] moving resize event inside screen setup... --- src/screen.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/screen.js b/src/screen.js index 794a939..753925c 100644 --- a/src/screen.js +++ b/src/screen.js @@ -181,6 +181,9 @@ screen.init = function() { this.ctx.mozImageSmoothingEnabled = false; this.ctx.webkitImageSmoothingEnabled = false; this.ctx.imageSmoothingEnabled = false; + addEvent(window, "resize", function() { + screen.resize() + }); (function() { var lastTime = 0; @@ -935,10 +938,6 @@ debug.FPS = { } -addEvent(window, "resize", function() { - screen.resize() -}); - // MIT LICENSE // Copyright (c) 2016 Érico Vieira Porto //