core/menusystem: fix a crash
This commit is contained in:
parent
648ede5874
commit
b417eb5c6a
1 changed files with 2 additions and 2 deletions
|
@ -64,10 +64,10 @@ end
|
||||||
|
|
||||||
function Menu:draw()
|
function Menu:draw()
|
||||||
if self.canvas.needRedraw == true then
|
if self.canvas.needRedraw == true then
|
||||||
CScreen:cease()
|
core.screen:cease()
|
||||||
self:drawCanvas()
|
self:drawCanvas()
|
||||||
self.canvas.needRedraw = false
|
self.canvas.needRedraw = false
|
||||||
CScreen:apply()
|
core.screen:apply()
|
||||||
end
|
end
|
||||||
|
|
||||||
love.graphics.draw(self.canvas.texture, self.x, self.y)
|
love.graphics.draw(self.canvas.texture, self.x, self.y)
|
||||||
|
|
Loading…
Reference in a new issue