From d72b30ebd6b6f6659524c62adfd64800c7e4d246 Mon Sep 17 00:00:00 2001 From: George FunBook Date: Thu, 12 Dec 2024 10:50:31 -0600 Subject: [PATCH] backwards compat with flixel 5.8.0 --- flixel/addons/ui/FlxInputText.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flixel/addons/ui/FlxInputText.hx b/flixel/addons/ui/FlxInputText.hx index 2bdbea8..6f100a7 100644 --- a/flixel/addons/ui/FlxInputText.hx +++ b/flixel/addons/ui/FlxInputText.hx @@ -745,7 +745,7 @@ class FlxInputText extends FlxText r.x = r.y = 0; caret.pixels.fillRect(r, caretC); // draw caret caret.offset.x = caret.offset.y = 0; - + #if (flixel > "5.8.0") case SHADOW_XY(shadowX, shadowY): // Shadow offset to the lower-right cw += Std.int(Math.abs(shadowX)); @@ -758,7 +758,7 @@ class FlxInputText extends FlxText caret.pixels.fillRect(r, caretC); // draw caret caret.offset.x = shadowX < 0 ? -shadowX : 0; caret.offset.y = shadowY < 0 ? -shadowY : 0; - + #end case OUTLINE_FAST, OUTLINE: // Border all around it final absSize = Math.abs(borderSize);