From abcccc8e9cc355e6a34842d07043cf5c69f2dbbb Mon Sep 17 00:00:00 2001 From: gretchen Date: Wed, 20 Nov 2019 01:41:59 -0800 Subject: Redraw hygiene / don't overdraw --- intervals.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/intervals.lua b/intervals.lua index 807d970..53d6f46 100644 --- a/intervals.lua +++ b/intervals.lua @@ -208,7 +208,10 @@ function state_init(state) end function state_redraw(state) - state_call(state, "redraw") + -- we need to call redraw() here instead of trying to + -- do anything, otherwise it'll draw over the settings + -- menus. + redraw() end function pop(state) @@ -587,6 +590,8 @@ function redraw() screen.aa(0) screen.line_width(1) + -- this needs to be the only place this gets called, + -- otherwise the menu will be drawn over. state_call(intervals_state, "redraw") end -- cgit v1.2.1