mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 23:20:59 +00:00
Fixed ScaleManager EXACT_FIT not working
This commit is contained in:
parent
172f972d8c
commit
ba0683b4d0
1 changed files with 3 additions and 3 deletions
|
@ -725,7 +725,7 @@ Phaser.ScaleManager.prototype = {
|
||||||
|
|
||||||
this._booted = true;
|
this._booted = true;
|
||||||
|
|
||||||
if (this._pendingScaleMode)
|
if (this._pendingScaleMode !== null)
|
||||||
{
|
{
|
||||||
this.scaleMode = this._pendingScaleMode;
|
this.scaleMode = this._pendingScaleMode;
|
||||||
this._pendingScaleMode = null;
|
this._pendingScaleMode = null;
|
||||||
|
@ -742,7 +742,7 @@ Phaser.ScaleManager.prototype = {
|
||||||
*/
|
*/
|
||||||
parseConfig: function (config) {
|
parseConfig: function (config) {
|
||||||
|
|
||||||
if (config['scaleMode'])
|
if (config['scaleMode'] !== undefined)
|
||||||
{
|
{
|
||||||
if (this._booted)
|
if (this._booted)
|
||||||
{
|
{
|
||||||
|
@ -754,7 +754,7 @@ Phaser.ScaleManager.prototype = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config['fullScreenScaleMode'])
|
if (config['fullScreenScaleMode'] !== undefined)
|
||||||
{
|
{
|
||||||
this.fullScreenScaleMode = config['fullScreenScaleMode'];
|
this.fullScreenScaleMode = config['fullScreenScaleMode'];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue