This commit is contained in:
2026-05-05 18:16:34 -04:00
parent 604cb7857f
commit aa0ff7d305

View File

@@ -51,8 +51,17 @@ local function makeGpuBackend(gpu)
if pcall(gpu.setSize, s) then break end if pcall(gpu.setSize, s) then break end
end end
local pw, ph = gpu.getSize() -- getSize() returns: pixelW, pixelH, blocksX, blocksY, sizePerBlock
print(("[roulette] GPU pixel size: %sx%s"):format(tostring(pw), tostring(ph))) 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 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.") error(("GPU reports unusable pixel size %sx%s. Place at least one screen block adjacent to the GPU.")