How to: resizing and the maximize button?
Posted: Sat Sep 01, 2018 6:47 am
so here is my resizing code. When you hit the maximize button, well, it goes kind of slow as it changes the window size and doesn't look that good. How can I improve this?
Code: Select all
window_state = 1
function love.resize(w,h)
if window_state == 1 then
love.window.updateMode(800,600,{fullscreen = false, resizable = true, highdpi = true})
window_state = 2
elseif window_state == 2 then
love.window.updateMode( 1024, 768, {fullscreen = false, resizable = true, highdpi = true} )
window_state = 3
else
love.window.updateMode( 640, 480, {fullscreen = false, resizable = true, highdpi = true} )
window_state = 1
end
end