mirror of
https://github.com/wassname/phaser.git
synced 2026-07-31 12:40:07 +08:00
Updates across the board moving Stage.canvas to Game.canvas
This commit is contained in:
@@ -320,8 +320,8 @@ Phaser.StageScaleMode.prototype = {
|
||||
{
|
||||
if (this.fullScreenScaleMode === Phaser.StageScaleMode.EXACT_FIT)
|
||||
{
|
||||
this.game.stage.canvas.style['width'] = '100%';
|
||||
this.game.stage.canvas.style['height'] = '100%';
|
||||
this.game.canvas.style['width'] = '100%';
|
||||
this.game.canvas.style['height'] = '100%';
|
||||
|
||||
this.setMaximum();
|
||||
|
||||
@@ -339,8 +339,8 @@ Phaser.StageScaleMode.prototype = {
|
||||
}
|
||||
else
|
||||
{
|
||||
this.game.stage.canvas.style['width'] = this.game.width + 'px';
|
||||
this.game.stage.canvas.style['height'] = this.game.height + 'px';
|
||||
this.game.canvas.style['width'] = this.game.width + 'px';
|
||||
this.game.canvas.style['height'] = this.game.height + 'px';
|
||||
|
||||
this.width = this._width;
|
||||
this.height = this._height;
|
||||
|
||||
Reference in New Issue
Block a user