Skip to content

Commit

Permalink
line margins to pixel
Browse files Browse the repository at this point in the history
  • Loading branch information
Geokureli committed Jun 12, 2024
1 parent 6ec694b commit cdd1e8e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions flixel/FlxObject.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1361,12 +1361,12 @@ class FlxObject extends FlxBasic
{
// fill static graphics object with square shape
gfx.beginFill(color, 0.75);
var size = 0.5;
var size = 1;

gfx.drawRect(rect.x - size, rect.y - size, size, rect.height + size);
gfx.drawRect(rect.x, rect.y - size, rect.width + size, size);
gfx.drawRect(rect.x + rect.width, rect.y, size, rect.height - size);
gfx.drawRect(rect.x, rect.y + rect.height - size, rect.width + size, size);
gfx.drawRect(rect.x, rect.y, size, rect.height);
gfx.drawRect(rect.x + size, rect.y, rect.width - 2 * size, size);
gfx.drawRect(rect.x + rect.width - size, rect.y, size, rect.height);
gfx.drawRect(rect.x + size, rect.y + rect.height - size, rect.width - 2 * size, size);
}

inline function beginDrawDebug(camera:FlxCamera):Graphics
Expand Down

0 comments on commit cdd1e8e

Please sign in to comment.