Skip to content

Commit f3488b0

Browse files
committed
Undid CSS background style
1 parent fafc597 commit f3488b0

2 files changed

Lines changed: 0 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878

7979
### Updates
8080

81-
* The `backgroundColor` property of the Game Config is now used to set the CSS backgroundColor property of the game Canvas element. This avoids a `fillRect` call in Canvas mode and allows for 'punch through' effects to be created. If `transparent` is true, the CSS property is not set and no background color is drawn in either WebGL or Canvas, allowing the canvas to be fully transparent.
8281
* You can now modify `this.physics.world.debugGraphic.defaultStrokeWidth` to set the stroke width of any debug drawn body, previously it was always 1 (thanks @samme)
8382
* `TextStyle.setFont` has a new optional argument `updateText` which will sets if the text should be automatically updated or not (thanks @DotTheGreat)
8483
* `ProcessQueue.destroy` now sets the internal `toProcess` counter to zero.

src/boot/CreateRenderer.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,6 @@ var CreateRenderer = function (game)
7575
game.canvas.style = config.canvasStyle;
7676
}
7777

78-
// Background color
79-
if (!config.transparent)
80-
{
81-
game.canvas.style.backgroundColor = config.backgroundColor.rgba;
82-
}
83-
8478
// Pixel Art mode?
8579
if (!config.antialias)
8680
{

0 commit comments

Comments
 (0)