Skip to content

Commit

Permalink
remove zoom arg
Browse files Browse the repository at this point in the history
  • Loading branch information
Geokureli committed Jun 12, 2024
1 parent be93dda commit 6ec694b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions flixel/FlxObject.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1331,11 +1331,11 @@ class FlxObject extends FlxBasic

var rect = getBoundingBox(camera);
var gfx:Graphics = beginDrawDebug(camera);
drawDebugBoundingBox(gfx, rect, allowCollisions, immovable, camera.zoom);
drawDebugBoundingBox(gfx, rect, allowCollisions, immovable);
endDrawDebug(camera);
}

function drawDebugBoundingBox(gfx:Graphics, rect:FlxRect, allowCollisions:Int, partial:Bool, ?zoom:Float = 1.0)
function drawDebugBoundingBox(gfx:Graphics, rect:FlxRect, allowCollisions:Int, partial:Bool)
{
// Find the color to use
final color = getDebugBoundingBoxColor(allowCollisions);
Expand All @@ -1360,8 +1360,8 @@ class FlxObject extends FlxBasic
function drawDebugBoundingBoxColor(gfx:Graphics, rect:FlxRect, color:FlxColor)
{
// fill static graphics object with square shape
gfx.beginFill(color, 0.5);
var size = Math.max(1 / zoom, 1);
gfx.beginFill(color, 0.75);
var size = 0.5;

gfx.drawRect(rect.x - size, rect.y - size, size, rect.height + size);
gfx.drawRect(rect.x, rect.y - size, rect.width + size, size);
Expand Down
2 changes: 1 addition & 1 deletion flixel/tile/FlxTilemap.hx
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ class FlxTypedTilemap<Tile:FlxTile> extends FlxBaseTilemap<Tile>
if (color != null)
{
final colStr = color.toHexString();
drawDebugBoundingBoxColor(camera.debugLayer.graphics, rect, color, camera.zoom);
drawDebugBoundingBoxColor(camera.debugLayer.graphics, rect, color);
}
}

Expand Down

0 comments on commit 6ec694b

Please sign in to comment.