Skip to content

Commit

Permalink
Modify FlxText to create a bitmap with an informative key.
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteMasterEric committed Jun 12, 2024
1 parent 00a45c8 commit 58dcc72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flixel/text/FlxText.hx
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ class FlxText extends FlxSprite
if (oldWidth != newWidth || oldHeight != newHeight)
{
// Need to generate a new buffer to store the text graphic
var key:String = FlxG.bitmap.getUniqueKey("text");
var key:String = FlxG.bitmap.getUniqueKey('text(${this.text})');
makeGraphic(newWidth, newHeight, FlxColor.TRANSPARENT, false, key);

if (_hasBorderAlpha)
Expand Down

0 comments on commit 58dcc72

Please sign in to comment.