diff options
author | gretchen <gretchen@gnar.cool> | 2019-11-20 01:41:59 -0800 |
---|---|---|
committer | gretchen <gretchen@gnar.cool> | 2019-11-20 01:41:59 -0800 |
commit | abcccc8e9cc355e6a34842d07043cf5c69f2dbbb (patch) | |
tree | 81c9338cd83ee1828ab22a058c956490b3c1c6ba | |
parent | bc86b826715d707e79f80a575fbc84e77bf62fbe (diff) | |
download | intervals-abcccc8e9cc355e6a34842d07043cf5c69f2dbbb.tar.gz intervals-abcccc8e9cc355e6a34842d07043cf5c69f2dbbb.zip |
Redraw hygiene / don't overdraw
-rw-r--r-- | intervals.lua | 7 |
1 files changed, 6 insertions, 1 deletions
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 |