mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
fixed vbar bugs
This commit is contained in:
parent
316b255a04
commit
e137953f93
@ -39,14 +39,14 @@ local function vbar(args)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- compute number of bars
|
-- 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
|
-- redraw only if number of bars has changed
|
||||||
if num_bars ~= last_num_bars then
|
if num_bars ~= last_num_bars then
|
||||||
last_num_bars = num_bars
|
last_num_bars = num_bars
|
||||||
|
|
||||||
-- start bottom up
|
-- start bottom up
|
||||||
local y = e.window.h
|
local y = e.frame.h
|
||||||
|
|
||||||
-- start at base of vertical bar
|
-- start at base of vertical bar
|
||||||
e.window.setCursorPos(1, y)
|
e.window.setCursorPos(1, y)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user