From cdd1e8e67d85355e763b1c6e2bf18ace830806e8 Mon Sep 17 00:00:00 2001 From: George FunBook Date: Wed, 12 Jun 2024 16:51:08 -0500 Subject: [PATCH] line margins to pixel --- flixel/FlxObject.hx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/flixel/FlxObject.hx b/flixel/FlxObject.hx index 000fce51c0..744b9071a4 100644 --- a/flixel/FlxObject.hx +++ b/flixel/FlxObject.hx @@ -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