mirror of
https://github.com/photonstorm/phaser
synced 2024-11-15 09:27:37 +00:00
Added a fix for fullscreen scaling in firefox.
This commit is contained in:
parent
b978a2b73b
commit
2e11801f9f
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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'])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue