summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-04-01 04:37:44 +0100
committerubq323 <ubq323@ubq323.website>2024-04-01 04:37:44 +0100
commitf5218ece59d046af7e6364c44d5d6ba890a58431 (patch)
tree8d09f43800747e43791cb697e77529ffba54e74a
parent4aa33c21da808c79046b5fb85c6873d88bd589c9 (diff)
launch john
-rw-r--r--john.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/john.lua b/john.lua
index 82f309c..d4cb071 100644
--- a/john.lua
+++ b/john.lua
@@ -20,8 +20,9 @@ local W,H = fb:get_size()
local total_width = 0
for ix,iname in ipairs(monitors) do
local mon = peripheral.wrap(iname)
- total_width = total_width + (mon.getSize())
+ total_width = total_width + (mon.getSize())*2 + 8
end
+total_width = total_width - 8
local leftover = total_width - W
local xoffs = math.floor(leftover/2)