From aa0ff7d305ed6a21962a3db4a290e2d5190b6160 Mon Sep 17 00:00:00 2001 From: itzmarkoni Date: Tue, 5 May 2026 18:16:34 -0400 Subject: [PATCH] updated --- programs/roulette.lua | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/programs/roulette.lua b/programs/roulette.lua index 6b902d3..6984edd 100644 --- a/programs/roulette.lua +++ b/programs/roulette.lua @@ -51,8 +51,17 @@ local function makeGpuBackend(gpu) if pcall(gpu.setSize, s) then break end end - local pw, ph = gpu.getSize() - print(("[roulette] GPU pixel size: %sx%s"):format(tostring(pw), tostring(ph))) + -- getSize() returns: pixelW, pixelH, blocksX, blocksY, sizePerBlock + local pw, ph, bx, by, sb = gpu.getSize() + print(("[roulette] GPU pixel size: %sx%s blocks: %sx%s per-block: %s") + :format(tostring(pw), tostring(ph), tostring(bx), tostring(by), tostring(sb))) + + if (bx or 0) <= 1 and (by or 0) <= 1 then + print("[roulette] WARNING: GPU only sees 1 monitor block.") + print("[roulette] - GPU must be horizontally adjacent (N/S/E/W) to a monitor.") + print("[roulette] - All monitor blocks in the wall must face the SAME direction.") + print("[roulette] - The wall must be a solid rectangle of monitor blocks (no gaps).") + end if not pw or not ph or pw < 8 or ph < 8 then error(("GPU reports unusable pixel size %sx%s. Place at least one screen block adjacent to the GPU.")