{{newin|[[0.9.0]]|090|type=function|text=Moved from [[love.graphics.getModes]]}}

Gets a list of supported fullscreen modes.
== Function ==
=== Synopsis ===
<source lang="lua">
modes = love.window.getFullscreenModes( display )
</source>
=== Arguments ===
{{param|number|display (1)|The index of the display, if multiple monitors are available.}}
=== Returns ===
{{param|table|modes|A table of width/height pairs. (Note that this may not be in order.)}}
== Examples ==
=== Format of the returned table ===
<source lang="lua">
modes = love.window.getFullscreenModes()

-- modes = {
-- 	{ width = 320, height = 240 },
-- 	{ width = 640, height = 480 },
-- 	{ width = 800, height = 600 },
-- 	{ width = 1024, height = 768 },
-- 	...
-- }
</source>
=== Sort table to ensure it is in order ===
<source lang="lua">
modes = love.window.getFullscreenModes()
table.sort(modes, function(a, b) return a.width*a.height < b.width*b.height end)   -- sort from smallest to largest
</source>
== See Also ==
* [[parent::love.window]]
* [[love.window.setMode]]
[[Category:Functions]]
{{#set:Description=Gets a list of supported fullscreen modes.}}
{{#set:Since=090}}

== Other Languages ==
{{i18n|love.window.getFullscreenModes}}