Available since LÖVE 11.0 |
This function is not supported in earlier versions. |
Sets the display mode and properties of the window, without modifying unspecified properties.
If width or height is 0, updateMode will use the width and height of the desktop.
Changing the display mode may have side effects: for example, canvases will be cleared. Make sure to save the contents of canvases beforehand or re-draw to them afterward if you need to.
success = love.window.updateMode( width, height, settings )
number width
number height
table settings
boolean fullscreen
FullscreenType fullscreentype
boolean vsync
number msaa
boolean resizable
boolean borderless
boolean centered
number display
number minwidth
number minheight
boolean highdpi
number x
number y
boolean success
If fullscreen is enabled and the width or height is not supported (see love.window.getFullscreenModes), the window may be resized to the closest available resolution and a resize event will be triggered.
If the fullscreen type is "desktop", then the window will be automatically resized to the desktop resolution.
Transparent backgrounds are currently not supported.