From 91b2b0c53139897860410553243b0f451a1e1802 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Tue, 23 Jan 2024 00:46:53 +0000 Subject: [PATCH] lint fix --- src/scale/ScaleManager.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/scale/ScaleManager.js b/src/scale/ScaleManager.js index 17e4d80ca..66c036d25 100644 --- a/src/scale/ScaleManager.js +++ b/src/scale/ScaleManager.js @@ -1048,12 +1048,12 @@ var ScaleManager = new Class({ this.canvas.height = styleHeight; } else if (this.scaleMode === CONST.SCALE_MODE.EXPAND) - { + { // Resize to match parent, like RESIZE mode // This will constrain using min/max this.displaySize.setSize(this.parentSize.width, this.parentSize.height); - + styleWidth = this.displaySize.width; styleHeight = this.displaySize.height; @@ -1073,10 +1073,10 @@ var ScaleManager = new Class({ var scaleY = this.parentSize.height / this.gameSize.height; - if (scaleX < scaleY) + if (scaleX < scaleY) { this.baseSize.setSize(this.gameSize.width, this.parentSize.height / scaleX); - } + } else { this.baseSize.setSize(this.displaySize.width / scaleY, this.gameSize.height); @@ -1092,7 +1092,7 @@ var ScaleManager = new Class({ } this.canvas.width = styleWidth; - this.canvas.height = styleHeight; + this.canvas.height = styleHeight; } else {