core: require that the user manually call suit:enterFrame during update/draw so that manually specifying mouse coordinates works
This commit is contained in:
parent
2634383ffd
commit
4aada674ad
1 changed files with 2 additions and 2 deletions
4
core.lua
4
core.lua
|
@ -213,14 +213,14 @@ function suit:registerDraw(f, ...)
|
|||
end
|
||||
|
||||
function suit:draw()
|
||||
self:exitFrame()
|
||||
-- self:exitFrame() -- CALL these manually in your update method
|
||||
love.graphics.push('all')
|
||||
for i = self.draw_queue.n,1,-1 do
|
||||
self.draw_queue[i]()
|
||||
end
|
||||
love.graphics.pop()
|
||||
self.draw_queue.n = 0
|
||||
self:enterFrame()
|
||||
-- self:enterFrame() -- CALL these manually in your update method
|
||||
end
|
||||
|
||||
return suit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue