Skip to content

Commit

Permalink
Merge pull request #345 from tsherif/fix-canvas-resize-check
Browse files Browse the repository at this point in the history
Fix to bug in canvas resize checks that caused continuous redraws.
  • Loading branch information
xeolabs committed Feb 20, 2015
2 parents 9f20f2e + c31c8da commit f180234
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,8 @@ SceneJS_Engine.prototype.start = function () {
aspect: width / height
});
self.display.imageDirty = true;
lastWidth = width;
lastHeight = height;
}

if (self.running && !self.paused) {
Expand Down

0 comments on commit f180234

Please sign in to comment.