Skip to content

Commit

Permalink
make segments argument of CircleShape:draw() functional
Browse files Browse the repository at this point in the history
  • Loading branch information
tesselode committed Nov 26, 2018
1 parent f0aa1bf commit 93042a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shapes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,8 @@ function ConcavePolygonShape:draw(mode, wireframe)
end

function CircleShape:draw(mode, segments)
love.graphics.circle(mode or 'line', self:outcircle())
local x, y, r = self:outcircle()
love.graphics.circle(mode or 'line', x, y, r, segments)
end

function PointShape:draw()
Expand Down

0 comments on commit 93042a8

Please sign in to comment.