Hopefully there won't be too many others.
46ASCE5K5QRO6BZNJPW4CJZCRVVG76S3GENIBGNGB352CP3DLDCQC function initialize_window_geometry()-- maximize windowlove.window.setMode(0, 0) -- maximizeApp.screen.width, App.screen.height, App.screen.flags = love.window.getMode()-- shrink slightly to account for window decorationApp.screen.width = App.screen.width-100App.screen.height = App.screen.height-100
function initialize_window_geometry(geometry_spec)local geometry_initializedif geometry_spec thengeometry_initialized = parse_geometry_spec(geometry_spec)endif not geometry_initialized then-- maximize windowlove.window.setMode(0, 0) -- maximizeApp.screen.width, App.screen.height, App.screen.flags = love.window.getMode()-- shrink slightly to account for window decorationApp.screen.width = App.screen.width-100App.screen.height = App.screen.height-100end
endfunction parse_geometry_spec(geometry_spec)local width, height, x, y = geometry_spec:match('(%d+)x(%d+)%+(%d+)%+(%d+)')if width == nil thenprint('invalid geometry spec: '..geometry_spec)print('expected format: {width}x{height}+{x}+{y}')return falseendApp.screen.width = math.floor(tonumber(width))App.screen.height = math.floor(tonumber(height))App.screen.flags = {x=math.floor(tonumber(x)), y=math.floor(tonumber(y))}return true