mirror of
https://github.com/wassname/phaser.git
synced 2026-07-20 12:30:48 +08:00
Phaser.AnimationParser now sets the trimmed data directly for Pixi Texture frames. Tested across JSON Hash, JSON Data, Sprite Sheet and XML.
This commit is contained in:
+3
-12
@@ -248,21 +248,12 @@ Object.defineProperty(Phaser.Stage.prototype, "backgroundColor", {
|
||||
|
||||
if (this.game.transparent === false)
|
||||
{
|
||||
if (this.game.renderType == Phaser.CANVAS)
|
||||
if (typeof color === 'string')
|
||||
{
|
||||
// Set it directly, this allows us to use rgb alpha values in Canvas mode.
|
||||
this.game.canvas.style.backgroundColor = color;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (typeof color === 'string')
|
||||
{
|
||||
color = Phaser.Color.hexToRGB(color);
|
||||
}
|
||||
|
||||
this._stage.setBackgroundColor(color);
|
||||
color = Phaser.Color.hexToRGB(color);
|
||||
}
|
||||
|
||||
this._stage.setBackgroundColor(color);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user