Skip to content

Commit 57aaf23

Browse files
committed
Fix for fullscreen retina
1 parent 19584b7 commit 57aaf23

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/core/ScaleManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,8 +1358,8 @@ Phaser.ScaleManager.prototype = {
13581358
}
13591359
else if (scaleMode === Phaser.ScaleManager.NO_SCALE)
13601360
{
1361-
this.width = this.game.width;
1362-
this.height = this.game.height;
1361+
this.width = this.game.width / this.game.device.pixelRatio;
1362+
this.height = this.game.height / this.game.device.pixelRatio;
13631363
}
13641364
else if (scaleMode === Phaser.ScaleManager.USER_SCALE)
13651365
{

0 commit comments

Comments
 (0)