mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
Allow width and height 0 in love.conf (issue #175)
This commit is contained in:
@@ -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
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user