mirror of
https://github.com/photonstorm/phaser
synced 2024-11-30 16:39:34 +00:00
Merge pull request #2248 from 06wj/dev
Fixed ScaleManager EXACT_FIT not working
This commit is contained in:
commit
4e3c764207
1 changed files with 3 additions and 3 deletions
|
@ -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'];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue