From 1a7931ed7270f5985101ead610fb6c77e2f1ca75 Mon Sep 17 00:00:00 2001 From: TracedInPurple <74588450+TracedInPurple@users.noreply.github.com> Date: Tue, 5 May 2026 18:35:24 +0200 Subject: [PATCH 1/2] Added OUTLINE_CARDINAL to match https://github.com/HaxeFlixel/flixel/pull/3593 --- flixel/addons/ui/FlxInputText.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flixel/addons/ui/FlxInputText.hx b/flixel/addons/ui/FlxInputText.hx index 66cf33e..0dfe63f 100644 --- a/flixel/addons/ui/FlxInputText.hx +++ b/flixel/addons/ui/FlxInputText.hx @@ -760,7 +760,7 @@ class FlxInputText extends FlxText caret.offset.x = shadowX < 0 ? -shadowX : 0; caret.offset.y = shadowY < 0 ? -shadowY : 0; #end - case OUTLINE_FAST, OUTLINE: + case OUTLINE_FAST, OUTLINE, OUTLINE_CARDINAL: // Border all around it final absSize = Math.abs(borderSize); cw += Std.int(absSize * 2); From 2657c3c9f16bde6344df5b0469067d5015d9fd8e Mon Sep 17 00:00:00 2001 From: George Kurelic Date: Tue, 5 May 2026 11:46:18 -0500 Subject: [PATCH 2/2] Apply suggestion from @Geokureli --- flixel/addons/ui/FlxInputText.hx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flixel/addons/ui/FlxInputText.hx b/flixel/addons/ui/FlxInputText.hx index 0dfe63f..a2c02e3 100644 --- a/flixel/addons/ui/FlxInputText.hx +++ b/flixel/addons/ui/FlxInputText.hx @@ -760,7 +760,11 @@ class FlxInputText extends FlxText caret.offset.x = shadowX < 0 ? -shadowX : 0; caret.offset.y = shadowY < 0 ? -shadowY : 0; #end + #if (flixel < version("6.2.0")) + case OUTLINE_FAST, OUTLINE: + #else case OUTLINE_FAST, OUTLINE, OUTLINE_CARDINAL: + #end // Border all around it final absSize = Math.abs(borderSize); cw += Std.int(absSize * 2);