diff options
Diffstat (limited to 'john.lua')
-rw-r--r-- | john.lua | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -24,14 +24,14 @@ function main() local W,H = fb:get_size() print("img is ",W,H) - local total_width = 0 + local screen_width = 0 for ix,iname in ipairs(monitors) do local mon = peripheral.wrap(iname) mon.setTextScale(0.5) - total_width = total_width + (mon.getSize())*2 + screen_width = screen_width + (mon.getSize())*2 end - local leftover = total_width - W - print("mmm",total_width,W,leftover) + local leftover = screen_width - W + print("mmm",screen_width,W,leftover) local xoffs = -math.floor(leftover/2) for ix,iname in ipairs(monitors) do |