Error when checkMode during screen initialization fails (bug #119)

This commit is contained in:
Bart van Strien
2010-12-31 11:46:32 +01:00
parent ece02577a5
commit 618d48ce39
2 changed files with 1787 additions and 1782 deletions
+2
View File
@@ -280,6 +280,8 @@ function love.init()
if c.screen and c.modules.graphics then
if love.graphics.checkMode(c.screen.width, c.screen.height, c.screen.fullscreen) then
assert(love.graphics.setMode(c.screen.width, c.screen.height, c.screen.fullscreen, c.screen.vsync, c.screen.fsaa), "Could not set screen mode")
else
error("Could not set screen mode")
end
love.graphics.setCaption(c.title)
end