Maerge in default

--HG--
branch : minor
This commit is contained in:
Bart van Strien
2012-11-18 19:28:57 +01:00
13 changed files with 122 additions and 33 deletions
+2 -1
View File
@@ -324,6 +324,7 @@ function love.init()
end
-- Setup screen here.
local has_window = false
if c.screen and c.modules.graphics then
if love.graphics.checkMode(c.screen.width, c.screen.height, c.screen.fullscreen) or (c.screen.width == 0 and c.screen.height == 0) then
assert(love.graphics.setMode(c.screen.width, c.screen.height,
@@ -376,7 +377,7 @@ function love.init()
"The game might still work, but it is not guaranteed.\n" ..
"Furthermore, this means one should not judge this game or the engine if not."
print(msg)
if love.graphics and love.timer and love.event then
if has_window and love.timer and love.event then
love.event.pump()
love.graphics.setBackgroundColor(89, 157, 220)
love.graphics.clear()