aboutsummaryrefslogtreecommitdiffstats
path: root/checkbox.lua
diff options
context:
space:
mode:
Diffstat (limited to 'checkbox.lua')
-rw-r--r--checkbox.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/checkbox.lua b/checkbox.lua
index b51cbb3..db282a7 100644
--- a/checkbox.lua
+++ b/checkbox.lua
@@ -1,9 +1,9 @@
local core = require((...):match("(.-)[^%.]+$") .. 'core')
-return function(info, x,y, w,h, draw)
+return function(info, x,y, w,h, widgetHit, draw)
local id = core.generateID()
- core.mouse.updateState(id, x,y,w,h)
+ core.mouse.updateState(id, widgetHit or core.style.widgetHit, x,y,w,h)
core.makeCyclable(id)
core.registerDraw(id, draw or core.style.Checkbox, info.checked,x,y,w,h)