updated
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user