mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Potentially worked around an SDL resize event bug in windows causing initial window creation to happen twice
This commit is contained in:
@@ -190,8 +190,10 @@ function love.createhandlers()
|
||||
end,
|
||||
resize = function(w, h)
|
||||
local ow, oh, flags = love.graphics.getMode()
|
||||
love.graphics.setMode(w, h, flags)
|
||||
if love.resize then love.resize(w, h) end
|
||||
if flags.resizable then
|
||||
love.graphics.setMode(w, h, flags)
|
||||
if love.resize then love.resize(w, h) end
|
||||
end
|
||||
end,
|
||||
}, {
|
||||
__index = function(self, name)
|
||||
|
||||
Reference in New Issue
Block a user