modules/menusystem: add a way to easily invalidate widget canvas
This commit is contained in:
parent
ae5a001e00
commit
a6b1f2da59
1 changed files with 4 additions and 0 deletions
|
@ -66,6 +66,10 @@ function BaseWidget:redrawCanvas()
|
|||
imageData:release( )
|
||||
end
|
||||
|
||||
function BaseWidget:invalidateCanvas()
|
||||
self.canvas.needRedraw = true
|
||||
end
|
||||
|
||||
function BaseWidget:drawCanvas()
|
||||
self.r = love.math.random(128)/256
|
||||
self.g = love.math.random(128)/256
|
||||
|
|
Loading…
Reference in a new issue