It only makes sense based on the layout.
KWMGPU6WTJORKCZAVAFGBM2C5X7NDWR44HHJOZDVLUOBOVULSB2QC
KCUJIKQ6POLGKI26YHZWTD242B7JOSGI4VO4XBSKAU66ARM3EIBQC
VBDXFLAHYCFGMZDENTINHPZZGGR572UGB5E735HYDMQGGNHOTTFQC
GVX7YSQYURPWFSUWVUAORZJTQBJURWWNBNUGEZYFAUMX3X5LSACQC
4IBBQBYGBZDCXQO5C7H6UTWT67YJUJ7R6FH6UNHX4QGXOO47UUBQC
TRZPDEYAE6S3FP7NKTNKQLECPVV2LRKGC7PJCC2MHPXDLU7CAABQC
WMYD2MLJHHONHGA2M2K7G5DYZ47A7ZEZ7M3CJAMLFQK7GRG4UE3AC
VZTOJS52BORPI34JWUWQFQEENTMZDLQHCCNZMFBQ6UWFLHE6X5GAC
TWOCOTZPRAI2JQH6QY2ZBUZGYA53G7MCOSO64LBIO7OCVEHK7AGQC
end
function car.resize()
local w,h = Safe_width, Safe_height
side = min(w/(lw+6), h/(lh+6)) -- leave some margin for buttons
pxside = side/num_tile_px
left = (w-side*lw)/2
top = (h-side*lh)/2
bside = min(left, top)
end
-- ensure we can fit the above layout into the available window area
-- leave 6 tiles worth of margin on all sides for the nav buttons
function car.resize()
local w,h = Safe_width, Safe_height
side = min(w/(lw+6), h/(lh+6)) -- leave some margin for buttons
pxside = side/num_tile_px
left = (w-side*lw)/2
top = (h-side*lh)/2
bside = min(left, top)