Skip to content

Commit

Permalink
Fix range indicator for circle platform
Browse files Browse the repository at this point in the history
  • Loading branch information
MatusGuy committed Jan 2, 2024
1 parent 97907d2 commit e2a34ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/object/circleplatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ CirclePlatform::draw(DrawingContext& context)

if (Editor::is_active())
{
Rectf rect(Vector(start_position.x - radius + get_bbox().get_width() / 2,
start_position.y - radius + get_bbox().get_height() / 2),
Rectf rect(Vector(get_pos().x - radius + get_bbox().get_width() / 2,
get_pos().y - radius + get_bbox().get_height() / 2),
Sizef(radius * 2, radius * 2));
context.color().draw_surface_scaled(m_radius_indicator, rect, m_layer);
}
Expand Down

0 comments on commit e2a34ca

Please sign in to comment.