diff src/scripts/boot.lua @ 1441:f2be7a6a4d84

Potentially worked around an SDL resize event bug in windows causing initial window creation to happen twice
author Alex Szpakowski <slime73@gmail.com>
date Fri, 12 Apr 2013 14:20:00 -0300
parents f22a7acf5853
children
line wrap: on
line diff
--- a/src/scripts/boot.lua	Thu Apr 11 20:12:15 2013 -0300
+++ b/src/scripts/boot.lua	Fri Apr 12 14:20:00 2013 -0300
@@ -190,8 +190,10 @@
 		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)