Skip to content

Commit 1ac287f

Browse files
committed
Merge pull request phaserjs#1993 from nickryall/retina-fullscreen
Fix for fullscreen retina ( Desktop )
2 parents 9787474 + 57aaf23 commit 1ac287f

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
@@ -1364,8 +1364,8 @@ Phaser.ScaleManager.prototype = {
13641364
}
13651365
else if (scaleMode === Phaser.ScaleManager.NO_SCALE)
13661366
{
1367-
this.width = this.game.width;
1368-
this.height = this.game.height;
1367+
this.width = this.game.width / this.game.device.pixelRatio;
1368+
this.height = this.game.height / this.game.device.pixelRatio;
13691369
}
13701370
else if (scaleMode === Phaser.ScaleManager.USER_SCALE)
13711371
{

0 commit comments

Comments
 (0)