mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 14:08:28 +00:00
lint fix
This commit is contained in:
parent
91986c58e5
commit
91b2b0c531
1 changed files with 5 additions and 5 deletions
|
@ -1048,12 +1048,12 @@ var ScaleManager = new Class({
|
||||||
this.canvas.height = styleHeight;
|
this.canvas.height = styleHeight;
|
||||||
}
|
}
|
||||||
else if (this.scaleMode === CONST.SCALE_MODE.EXPAND)
|
else if (this.scaleMode === CONST.SCALE_MODE.EXPAND)
|
||||||
{
|
{
|
||||||
// Resize to match parent, like RESIZE mode
|
// Resize to match parent, like RESIZE mode
|
||||||
|
|
||||||
// This will constrain using min/max
|
// This will constrain using min/max
|
||||||
this.displaySize.setSize(this.parentSize.width, this.parentSize.height);
|
this.displaySize.setSize(this.parentSize.width, this.parentSize.height);
|
||||||
|
|
||||||
styleWidth = this.displaySize.width;
|
styleWidth = this.displaySize.width;
|
||||||
styleHeight = this.displaySize.height;
|
styleHeight = this.displaySize.height;
|
||||||
|
|
||||||
|
@ -1073,10 +1073,10 @@ var ScaleManager = new Class({
|
||||||
|
|
||||||
var scaleY = this.parentSize.height / this.gameSize.height;
|
var scaleY = this.parentSize.height / this.gameSize.height;
|
||||||
|
|
||||||
if (scaleX < scaleY)
|
if (scaleX < scaleY)
|
||||||
{
|
{
|
||||||
this.baseSize.setSize(this.gameSize.width, this.parentSize.height / scaleX);
|
this.baseSize.setSize(this.gameSize.width, this.parentSize.height / scaleX);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.baseSize.setSize(this.displaySize.width / scaleY, this.gameSize.height);
|
this.baseSize.setSize(this.displaySize.width / scaleY, this.gameSize.height);
|
||||||
|
@ -1092,7 +1092,7 @@ var ScaleManager = new Class({
|
||||||
}
|
}
|
||||||
|
|
||||||
this.canvas.width = styleWidth;
|
this.canvas.width = styleWidth;
|
||||||
this.canvas.height = styleHeight;
|
this.canvas.height = styleHeight;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue