mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 13:43:26 +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 width = baseSize.width;
|
||||
var height = baseSize.height;
|
||||
|
||||
// Does the game config provide its own canvas element to use?
|
||||
if (config.canvas)
|
||||
{
|
||||
game.canvas = config.canvas;
|
||||
|
||||
game.canvas.width = baseSize.width;
|
||||
game.canvas.height = baseSize.height;
|
||||
game.canvas.width = width;
|
||||
game.canvas.height = height;
|
||||
}
|
||||
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?
|
||||
|
|
Loading…
Reference in a new issue