Potentially worked around an SDL resize event bug in windows causing initial window creation to happen twice

This commit is contained in:
Alex Szpakowski
2013-04-12 14:20:00 -03:00
parent 995210e594
commit ba3a363fd3
2 changed files with 13 additions and 8 deletions
+4 -2
View File
@@ -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)