From 5c2792c9f43ef7972e60bcbe345b896e2eb1a98e Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Mon, 11 Feb 2019 22:37:20 +0100 Subject: [PATCH] core/menusystem: remove canvas use from menu itself --- .../core/modules/menusystem/parent.lua | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/sonic-boost.love/core/modules/menusystem/parent.lua b/sonic-boost.love/core/modules/menusystem/parent.lua index 946c460..f754665 100644 --- a/sonic-boost.love/core/modules/menusystem/parent.lua +++ b/sonic-boost.love/core/modules/menusystem/parent.lua @@ -25,10 +25,6 @@ function Menu:new(menusystem, name, x, y, w, h) self.sound.asset = nil self.sound.active = false - self.canvas = {} - self.canvas.texture = nil - self.canvas.needRedraw = true - self:register() end @@ -78,14 +74,7 @@ function Menu:destroy() end function Menu:draw() - if self.canvas.needRedraw == true then - core.screen:cease() - self:drawCanvas() - self.canvas.needRedraw = false - core.screen:apply() - end - - love.graphics.draw(self.canvas.texture, self.x, self.y) + -- nothing here end function Menu:drawCanvas() @@ -142,7 +131,6 @@ function Menu:moveCursor(new_selected) self.widget.selected = new_selected end end - self.canvas.needRedraw = true end function Menu:setSound(soundasset)