From 2e11801f9f1a8c88ffffddd7bac96e5d90890547 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 5 Dec 2013 07:15:50 +0000 Subject: [PATCH] Added a fix for fullscreen scaling in firefox. --- examples/display/fullscreen.js | 2 +- src/system/StageScaleMode.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/display/fullscreen.js b/examples/display/fullscreen.js index 5c5932f8d..d02dd75ce 100644 --- a/examples/display/fullscreen.js +++ b/examples/display/fullscreen.js @@ -18,7 +18,7 @@ function create() { // Keep original size // game.stage.fullScreenScaleMode = Phaser.StageScaleMode.NO_SCALE; // Maintain aspect ratio - game.stage.fullScreenScaleMode = Phaser.StageScaleMode.NO_SCALE; + game.stage.fullScreenScaleMode = Phaser.StageScaleMode.SHOW_ALL; game.input.onDown.add(gofull, this); diff --git a/src/system/StageScaleMode.js b/src/system/StageScaleMode.js index 70079717b..fd5588854 100644 --- a/src/system/StageScaleMode.js +++ b/src/system/StageScaleMode.js @@ -268,7 +268,7 @@ Phaser.StageScaleMode.prototype = { } else if (element['mozRequestFullScreen']) { - element['mozRequestFullScreen'](); + element.parentNode['mozRequestFullScreen'](); } else if (element['webkitRequestFullScreen']) {