local fsc_val = love.window.getFullscreen()
if fsc_val then
love.window.updateMode(_config.window.width, _config.window.height, {fullscreen = false})
else
love.window.setFullscreen(true)
end
where _config is some global to link to conf table. Is there better way to code toggleFullscreen function without making globals?
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.
Basically, it should go back to the size the window had before going to fullscreen.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.