diff --git a/src/text/BitmapText.js b/src/text/BitmapText.js index f69f259..0fa4f2f 100644 --- a/src/text/BitmapText.js +++ b/src/text/BitmapText.js @@ -93,7 +93,7 @@ return this._style.tint; }, set: function (value) { - this._style.tint = value; + this._style.tint = (typeof value === 'number' && value >= 0) ? value : 0xFFFFFF; this.dirty = true; } @@ -220,7 +220,7 @@ var lenChildren = this.children.length; var lenChars = chars.length; - var tint = this.tint || 0xFFFFFF; + var tint = this.tint; for (i = 0; i < lenChars; i++) { var c = i < lenChildren ? this.children[i] : this._pool.pop(); // get old child if have. if not - take from pool.