Skip to content

Commit 164039d

Browse files
committed
Sets the re-tint state to true.
Removed un-needed clear call.
1 parent 326cb75 commit 164039d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/gameobjects/RetroFont.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ Phaser.RetroFont.prototype.buildRetroFontText = function () {
336336
var cx = 0;
337337
var cy = 0;
338338

339+
// Clears the textureBuffer
339340
this.clear();
340341

341342
if (this.multiLine)
@@ -409,11 +410,11 @@ Phaser.RetroFont.prototype.buildRetroFontText = function () {
409410
cx = 0;
410411
}
411412

412-
this.textureBuffer.clear();
413-
414413
this.pasteLine(this._text, cx, 0, this.customSpacingX);
415414
}
416415

416+
this.requiresReTint = true;
417+
417418
};
418419

419420
/**

0 commit comments

Comments
 (0)