Difference between revisions of "love.window.getDesktopDimensions"

m
Line 7: Line 7:
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|number|display (1)|The index of the display.}}
+
{{param|number|display (1)|The index of the display, if multiple monitors are available.}}
 
=== Returns ===
 
=== Returns ===
 
{{param|number|width|The width of the desktop.}}
 
{{param|number|width|The width of the desktop.}}

Revision as of 04:03, 2 September 2013

Available since LÖVE 0.9.0
This function is not supported in earlier versions.

Gets the width and height of the desktop.

Function

Synopsis

width, height = love.window.getDesktopDimensions( display )

Arguments

number display (1)
The index of the display, if multiple monitors are available.

Returns

number width
The width of the desktop.
number height
The height of the desktop.

See Also

Other Languages