Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function love.load()
- WW, WH = 1360, 768
- mw, mh = 1360, 768
- for i = 1, math.max(WW, WH) do
- local nx, ny = WW/i, WH/i
- if math.mod(nx, 1) == 0 and math.mod(ny, 1) == 0 then
- mw, mh = nx, ny
- end
- end
- error(mw .. ":" .. mh)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement