fix width
This commit is contained in:
parent
b70cbfbad8
commit
9d256ed600
1 changed files with 2 additions and 2 deletions
4
node.lua
4
node.lua
|
@ -31,8 +31,8 @@ function node.render()
|
||||||
lower_text = location .. " - Serial " .. serial
|
lower_text = location .. " - Serial " .. serial
|
||||||
|
|
||||||
upper_width = font:width(upper_text, 40)
|
upper_width = font:width(upper_text, 40)
|
||||||
font:write(1920-(upper_width/2), 631, upper_text, 40, 1,1,1,1)
|
font:write(960-(upper_width/2), 631, upper_text, 40, 1,1,1,1)
|
||||||
|
|
||||||
lower_width = font:width(lower_text, 20)
|
lower_width = font:width(lower_text, 20)
|
||||||
font:write(1920-(lower_width/2), 679, lower_text, 20, 1,1,1,1)
|
font:write(960-(lower_width/2), 679, lower_text, 20, 1,1,1,1)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue