love.window.setMode
Sets the display mode and properties of the window.

If width or height is 0, setMode will use the width and height of the desktop.

Changing the display mode may have side effects: for example, canvases will be cleared and values sent to shaders with canvases beforehand or re-draw to them afterward if you need to.
success = love.window.setMode( width, height, flags )
width number Display width.
height number Display height.
flags table The flags table with the options:
flags.fullscreen (false) boolean Fullscreen (true), or windowed (false).
flags.fullscreentype ('desktop') FullscreenType The type of fullscreen to use. This defaults to 'normal' in 0.9.0 through 0.9.2 and to 'desktop' in 0.10.0 and older.
flags.vsync (true) boolean True if LÖVE should wait for vsync, false otherwise.
flags.msaa (0) number The number of antialiasing samples.
flags.stencil (true) boolean Whether a stencil buffer should be allocated. If true, the stencil buffer will have 8 bits.
flags.depth (0) number The number of bits in the depth buffer.
flags.resizable (false) boolean True if the window should be resizable in windowed mode, false otherwise.
flags.borderless (false) boolean True if the window should be borderless in windowed mode, false otherwise.
flags.centered (true) boolean True if the window should be centered in windowed mode, false otherwise.
flags.display (1) number The index of the display to show the window in, if multiple monitors are available.
flags.minwidth (1) number The minimum width of the window, if it's resizable. Cannot be less than 1.
flags.minheight (1) number The minimum height of the window, if it's resizable. Cannot be less than 1.
flags.highdpi (false) boolean True if high-dpi mode should be used on Retina displays in macOS and iOS. Does nothing on non-Retina displays.
flags.x (nil) number The x-coordinate of the window's position in the specified display.
flags.y (nil) number The y-coordinate of the window's position in the specified display.
flags.usedpiscale (true) boolean Disables automatic DPI scaling when false.
flags.srgb (false) boolean Removed in 0.10.0 (set t.gammacorrect in conf.lua instead). True if sRGB gamma correction should be applied when drawing to the screen.
success boolean True if successful, false otherwise.