From 9d256ed600f609dbe3abab91c12bf209cd224375 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Tue, 14 Mar 2023 12:58:52 +0100 Subject: [PATCH] fix width --- node.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node.lua b/node.lua index 53e5791..f5d4af8 100644 --- a/node.lua +++ b/node.lua @@ -31,8 +31,8 @@ function node.render() lower_text = location .. " - Serial " .. serial 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) - 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