fix width

This commit is contained in:
Franziska Kunsmann 2023-03-14 12:58:52 +01:00
parent b70cbfbad8
commit 9d256ed600
No known key found for this signature in database
GPG key ID: 12E3D2136B818350

View file

@ -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