Available since LÖVE 0.9.0
This function is not supported in earlier versions.
Gets the width and height of the desktop.
width, height = love.window.getDesktopDimensions( display )
number display (1)
function love.draw() local _, _, flags = love.window.getMode() -- The window's flags contain the index of the monitor it's currently in. local width, height = love.window.getDesktopDimensions(flags.display) love.graphics.print(("display %d: %d x %d"):format(flags.display, width, height), 4, 10) end
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.window.getDesktopDimensions