Added a fix for fullscreen scaling in firefox.

This commit is contained in:
John 2013-12-05 07:15:50 +00:00
parent b978a2b73b
commit 2e11801f9f
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ function create() {
// Keep original size // Keep original size
// game.stage.fullScreenScaleMode = Phaser.StageScaleMode.NO_SCALE; // game.stage.fullScreenScaleMode = Phaser.StageScaleMode.NO_SCALE;
// Maintain aspect ratio // Maintain aspect ratio
game.stage.fullScreenScaleMode = Phaser.StageScaleMode.NO_SCALE; game.stage.fullScreenScaleMode = Phaser.StageScaleMode.SHOW_ALL;
game.input.onDown.add(gofull, this); game.input.onDown.add(gofull, this);

View file

@ -268,7 +268,7 @@ Phaser.StageScaleMode.prototype = {
} }
else if (element['mozRequestFullScreen']) else if (element['mozRequestFullScreen'])
{ {
element['mozRequestFullScreen'](); element.parentNode['mozRequestFullScreen']();
} }
else if (element['webkitRequestFullScreen']) else if (element['webkitRequestFullScreen'])
{ {