split arc into static and dynamic drawing

This commit is contained in:
petrucci4prez 2018-08-05 14:45:41 -04:00
parent fbf69531a6
commit 1b1051050b
3 changed files with 5 additions and 3 deletions

2
core

@ -1 +1 @@
Subproject commit f9e96aa82dfc3c0772350fbe2e73f050ca38f39d Subproject commit 9ff0deec0e7d77be7d6dd322c57889fe37d316ca

View File

@ -203,6 +203,7 @@ local draw_static = function(cr)
Line.draw(header.underline, cr) Line.draw(header.underline, cr)
Arc.draw(inner_ring, cr) Arc.draw(inner_ring, cr)
Dial.draw_static(dial, cr)
Text.draw(swap.label, cr) Text.draw(swap.label, cr)
TextColumn.draw(cache.labels, cr) TextColumn.draw(cache.labels, cr)
@ -214,7 +215,7 @@ end
local draw_dynamic = function(cr) local draw_dynamic = function(cr)
update(cr) update(cr)
Dial.draw(dial, cr) Dial.draw_dynamic(dial, cr)
Arc.draw(cache_arc, cr) Arc.draw(cache_arc, cr)
CriticalText.draw(total_used, cr) CriticalText.draw(total_used, cr)

View File

@ -258,6 +258,7 @@ local draw_static = function(cr)
for c = 1, NUM_PHYSICAL_CORES do for c = 1, NUM_PHYSICAL_CORES do
local this_core = cores[c] local this_core = cores[c]
Arc.draw(this_core.inner_ring, cr) Arc.draw(this_core.inner_ring, cr)
CompoundDial.draw_static(this_core.dials, cr)
end end
Text.draw(process.label, cr) Text.draw(process.label, cr)
@ -275,7 +276,7 @@ local draw_dynamic = function(cr)
for c = 1, NUM_PHYSICAL_CORES do for c = 1, NUM_PHYSICAL_CORES do
local this_core = cores[c] local this_core = cores[c]
CompoundDial.draw(this_core.dials, cr) CompoundDial.draw_dynamic(this_core.dials, cr)
CriticalText.draw(this_core.coretemp_text, cr) CriticalText.draw(this_core.coretemp_text, cr)
end end