Merge pull request #2248 from 06wj/dev

Fixed ScaleManager EXACT_FIT not working
This commit is contained in:
Richard Davey 2016-02-02 17:42:54 +02:00
commit 4e3c764207

View file

@ -725,7 +725,7 @@ Phaser.ScaleManager.prototype = {
this._booted = true;
if (this._pendingScaleMode)
if (this._pendingScaleMode !== null)
{
this.scaleMode = this._pendingScaleMode;
this._pendingScaleMode = null;
@ -742,7 +742,7 @@ Phaser.ScaleManager.prototype = {
*/
parseConfig: function (config) {
if (config['scaleMode'])
if (config['scaleMode'] !== undefined)
{
if (this._booted)
{
@ -754,7 +754,7 @@ Phaser.ScaleManager.prototype = {
}
}
if (config['fullScreenScaleMode'])
if (config['fullScreenScaleMode'] !== undefined)
{
this.fullScreenScaleMode = config['fullScreenScaleMode'];
}