split bar into static and dynamic drawing

This commit is contained in:
petrucci4prez 2018-08-05 14:54:49 -04:00
parent 1b1051050b
commit dc38389c8a
2 changed files with 3 additions and 2 deletions

2
core

@ -1 +1 @@
Subproject commit 9ff0deec0e7d77be7d6dd322c57889fe37d316ca Subproject commit 26bbebf6fb40c7ad4762dd0b884b85c22d3a98b4

View File

@ -66,12 +66,13 @@ local draw_static = function(cr)
Line.draw(header.underline, cr) Line.draw(header.underline, cr)
TextColumn.draw(labels, cr) TextColumn.draw(labels, cr)
CompoundBar.draw_static(bars, cr)
end end
local draw_dynamic = function(cr, trigger) local draw_dynamic = function(cr, trigger)
if trigger == 0 then update(cr) end if trigger == 0 then update(cr) end
CompoundBar.draw(bars, cr) CompoundBar.draw_dynamic(bars, cr)
end end
M.draw_static = draw_static M.draw_static = draw_static