mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Error when checkMode during screen initialization fails (bug #119)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user