Skip to content

Commit

Permalink
Include the text in the bitmap key.
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteMasterEric committed Mar 13, 2024
1 parent edfaf85 commit 44f2961
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 @@ -891,7 +891,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 44f2961

Please sign in to comment.