Skip to content

Commit

Permalink
fix shadowOffset clipping the graphic
Browse files Browse the repository at this point in the history
  • Loading branch information
Geokureli committed Aug 16, 2024
1 parent 06b0dea commit 4b02feb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flixel/text/FlxText.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1047,8 +1047,8 @@ class FlxText extends FlxSprite
switch(borderStyle)
{
case SHADOW if (_shadowOffset.x != 1 || _shadowOffset.y != 1):
offset.x = _shadowOffset.x < 0 ? -_shadowOffset.x : 0;
offset.y = _shadowOffset.y < 0 ? -_shadowOffset.y : 0;
offset.x = _shadowOffset.x > 0 ? _shadowOffset.x : 0;
offset.y = _shadowOffset.y > 0 ? _shadowOffset.y : 0;

case SHADOW: // With the default shadowOffset value
if (borderSize < 0)
Expand Down

0 comments on commit 4b02feb

Please sign in to comment.