mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 21:53:59 +00:00
Removed property access
This commit is contained in:
parent
a9043f142b
commit
f8d624c639
1 changed files with 6 additions and 3 deletions
|
@ -58,17 +58,20 @@ var CreateRenderer = function (game)
|
||||||
|
|
||||||
var baseSize = game.scale.baseSize;
|
var baseSize = game.scale.baseSize;
|
||||||
|
|
||||||
|
var width = baseSize.width;
|
||||||
|
var height = baseSize.height;
|
||||||
|
|
||||||
// Does the game config provide its own canvas element to use?
|
// Does the game config provide its own canvas element to use?
|
||||||
if (config.canvas)
|
if (config.canvas)
|
||||||
{
|
{
|
||||||
game.canvas = config.canvas;
|
game.canvas = config.canvas;
|
||||||
|
|
||||||
game.canvas.width = baseSize.width;
|
game.canvas.width = width;
|
||||||
game.canvas.height = baseSize.height;
|
game.canvas.height = height;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
game.canvas = CanvasPool.create(game, baseSize.width, baseSize.height, config.renderType);
|
game.canvas = CanvasPool.create(game, width, height, config.renderType);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Does the game config provide some canvas css styles to use?
|
// Does the game config provide some canvas css styles to use?
|
||||||
|
|
Loading…
Reference in a new issue