{{newin|[[0.9.0]]|090|type=function}}
Enters or exits fullscreen. The display to use when entering fullscreen is chosen based on which display the window is currently in, if multiple monitors are connected.
== Function ==
=== Synopsis ===
<source lang="lua">
success = love.window.setFullscreen( fullscreen )
</source>
=== Arguments ===
{{param|boolean|fullscreen|Whether to enter or exit fullscreen mode.}}
=== Returns ===
{{param|boolean|success|True if an attempt to enter fullscreen was successful, false otherwise.}}

== Function ==
=== Synopsis ===
<source lang="lua">
success = love.window.setFullscreen( fullscreen, fstype )
</source>
=== Arguments ===
{{param|boolean|fullscreen|Whether to enter or exit fullscreen mode.}}
{{param|FullscreenType|fstype|The type of fullscreen mode to use.}}
=== Returns ===
{{param|boolean|success|True if an attempt to enter fullscreen was successful, false otherwise.}}

== Notes ==
If fullscreen mode is entered and the window size doesn't match one of the monitor's display modes (in normal fullscreen mode) or the window size doesn't match the desktop size (in 'desktop' fullscreen mode), the window will be resized appropriately. The window will revert back to its original size again when fullscreen mode is exited using this function.

== Examples ==
Make the window fullscreen in desktop mode.
<source lang="lua">
function love.load()
    love.window.setFullscreen(true, "desktop")
end
</source>

== See Also ==
* [[parent::love.window]]
* [[love.window.getFullscreen]]
* [[love.window.setMode]]
* [[love.resize]]
[[Category:Functions]]
{{#set:Description=Enters or exits fullscreen.}}
== Other Languages ==
{{i18n|love.window.setFullscreen}}