remove legacy host_width
This commit is contained in:
parent
5d58fdc6f0
commit
7e4ad9b42e
1 changed files with 0 additions and 5 deletions
5
node.lua
5
node.lua
|
@ -53,16 +53,11 @@ function node.render()
|
|||
end
|
||||
|
||||
local title_width = CONFIG.header_font:width(titlebar, CONFIG.output_size)
|
||||
local host_width = 0
|
||||
|
||||
transform()
|
||||
CONFIG.background_color.clear()
|
||||
CONFIG.header_font:write(real_width/2-title_width/2, CONFIG.output_size*0.5, titlebar, CONFIG.output_size, 1,1,1,1)
|
||||
|
||||
for idx, service in ipairs(services.services) do
|
||||
host_width = math.max(host_width, CONFIG.header_font:width(service.host, CONFIG.header_size))
|
||||
end
|
||||
|
||||
local y = CONFIG.output_size*2
|
||||
for idx, serv in ipairs(services.services) do
|
||||
header_font_size = CONFIG.header_size
|
||||
|
|
Loading…
Reference in a new issue