From 44f2961a446f4c79f4efbfdd63294cd6009d8813 Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Tue, 12 Mar 2024 23:24:52 -0400 Subject: [PATCH] Include the text in the bitmap key. --- flixel/text/FlxText.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flixel/text/FlxText.hx b/flixel/text/FlxText.hx index e010d537b3..52b17b9e9c 100644 --- a/flixel/text/FlxText.hx +++ b/flixel/text/FlxText.hx @@ -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)