Allow width and height 0 in love.conf (issue #175)

This commit is contained in:
Bart van Strien
2011-01-27 22:14:27 +01:00
parent db1a2d12ff
commit 65c464fc7c
2 changed files with 1774 additions and 1770 deletions
+1 -1
View File
@@ -280,7 +280,7 @@ function love.init()
-- Setup screen here.
if c.screen and c.modules.graphics then
if love.graphics.checkMode(c.screen.width, c.screen.height, c.screen.fullscreen) 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, c.screen.fullscreen, c.screen.vsync, c.screen.fsaa), "Could not set screen mode")
else
error("Could not set screen mode")
+1773 -1769
View File
File diff suppressed because it is too large Load Diff