Skip to content

Commit

Permalink
backwards compat with flixel 5.8.0 (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
Geokureli authored Dec 13, 2024
1 parent b5202d2 commit 466a44b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flixel/addons/ui/FlxInputText.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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);
Expand Down

0 comments on commit 466a44b

Please sign in to comment.