Skip to content

Commit b49edb7

Browse files
committed
Reset defaults.
1 parent 3d75325 commit b49edb7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/components/Color.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ Phaser.Component.Color = function (gameObject)
3838
// String version of RGBA
3939
this._rgba = '';
4040

41-
// 32-bit version of RGBA
42-
this._glBg = this.getColor32(0, 0, 0, 0);
41+
// 32-bit version of ARGB
42+
this._glBg = 0;
4343

4444
this._hasBackground = false;
4545
};
@@ -53,6 +53,7 @@ Phaser.Component.Color.prototype = {
5353
if (red === undefined)
5454
{
5555
this._hasBackground = false;
56+
this._glBg = 0;
5657
}
5758
else
5859
{
@@ -117,7 +118,7 @@ Phaser.Component.Color.prototype = {
117118
this._glBg = this.getColor32(this._r, this._g, this._b, this._a);
118119
}
119120

120-
// Tint mults
121+
// Tint mults?
121122

122123
},
123124

0 commit comments

Comments
 (0)