Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

Commit

Permalink
moving resize event inside screen setup...
Browse files Browse the repository at this point in the history
  • Loading branch information
ericoporto committed Oct 30, 2016
1 parent 591b97f commit 11b72e6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -935,10 +938,6 @@ debug.FPS = {

}

addEvent(window, "resize", function() {
screen.resize()
});

// MIT LICENSE
// Copyright (c) 2016 Érico Vieira Porto
//
Expand Down

0 comments on commit 11b72e6

Please sign in to comment.