Fixed instance check issue in Game and tidied up the stageScaleMode inner loop.

This commit is contained in:
Richard Davey
2013-08-16 02:18:12 +01:00
parent f76ba6840f
commit c884bab7ec
6 changed files with 55 additions and 26 deletions
+1 -4
View File
@@ -5963,7 +5963,7 @@ var Phaser;
this.maxHeight = null;
this.width = 0;
this.height = 0;
this.maxIterations = 10;
this.maxIterations = 5;
this.game = game;
this.enterLandscape = new Phaser.Signal();
this.enterPortrait = new Phaser.Signal();
@@ -6025,9 +6025,6 @@ var Phaser;
}
};
StageScaleMode.prototype.update = function () {
if(this.game.stage.scaleMode !== Phaser.StageScaleMode.NO_SCALE && (window.innerWidth !== this.width || window.innerHeight !== this.height)) {
this.refresh();
}
if(this.forceLandscape || this.forcePortrait) {
this.checkOrientationState();
}