This commit is contained in:
Richard Davey 2019-01-22 15:45:53 +00:00
parent a7b3c95e30
commit a9043f142b

View file

@ -16,10 +16,8 @@ var Vector2 = require('../math/Vector2');
/**
* @classdesc
* TODO
*
* 1) autoCenter when canvas is BIGGER than the viewport should be negative, i.e. when mode is envelop.
* 2) If initial canvas size > parent size, it gets an inversed aspect ratio
* TODO
*
* @class ScaleManager
* @memberof Phaser.DOM
@ -154,6 +152,11 @@ var ScaleManager = new Class({
this.startListeners();
this.refresh();
console.log('boot');
console.log(this.gameSize.toString());
console.log(this.baseSize.toString());
console.log(this.displaySize.toString());
},
parseConfig: function (config)
@ -573,6 +576,11 @@ var ScaleManager = new Class({
step: function (time, delta)
{
if (this.scaleMode === 0)
{
return;
}
this._lastCheck += delta;
if (this.dirty || this._lastCheck > this.resizeInterval)