From e137953f93238e3628e28150f103cb1ad796af6f Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Sat, 25 Jun 2022 16:20:58 -0400 Subject: [PATCH] fixed vbar bugs --- graphics/elements/indicators/vbar.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphics/elements/indicators/vbar.lua b/graphics/elements/indicators/vbar.lua index ccd259a..e1016aa 100644 --- a/graphics/elements/indicators/vbar.lua +++ b/graphics/elements/indicators/vbar.lua @@ -39,14 +39,14 @@ local function vbar(args) end -- compute number of bars - local num_bars = util.round((fraction * 100) / (e.frame.h * 3)) + local num_bars = util.round(fraction * (e.frame.h * 3)) -- redraw only if number of bars has changed if num_bars ~= last_num_bars then last_num_bars = num_bars -- start bottom up - local y = e.window.h + local y = e.frame.h -- start at base of vertical bar e.window.setCursorPos(1, y)