Skip to content

Commit 04ea279

Browse files
committed
Use gameSize
1 parent d690b70 commit 04ea279

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/boot/CreateRenderer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ var CreateRenderer = function (game)
6161
{
6262
game.canvas = config.canvas;
6363

64-
game.canvas.width = game.scale.canvasSize.width;
65-
game.canvas.height = game.scale.canvasSize.height;
64+
game.canvas.width = game.scale.gameSize.width;
65+
game.canvas.height = game.scale.gameSize.height;
6666
}
6767
else
6868
{
69-
game.canvas = CanvasPool.create(game, game.scale.canvasSize.width, game.scale.canvasSize.height, config.renderType);
69+
game.canvas = CanvasPool.create(game, game.scale.gameSize.width, game.scale.gameSize.height, config.renderType);
7070
}
7171

7272
// Does the game config provide some canvas css styles to use?

src/renderer/webgl/WebGLRenderer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ var WebGLRenderer = new Class({
117117
* @type {integer}
118118
* @since 3.0.0
119119
*/
120-
this.width = game.scale.canvasSize.width;
120+
this.width = game.scale.gameSize.width;
121121

122122
/**
123123
* The height of the canvas being rendered to.
@@ -126,7 +126,7 @@ var WebGLRenderer = new Class({
126126
* @type {integer}
127127
* @since 3.0.0
128128
*/
129-
this.height = game.scale.canvasSize.height;
129+
this.height = game.scale.gameSize.height;
130130

131131
/**
132132
* The canvas which this WebGL Renderer draws to.

0 commit comments

Comments
 (0)