mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Add centered flag to setMode, optionally centers the window (on by default, as before) (issue #463)
This commit is contained in:
@@ -261,6 +261,9 @@ function love.init()
|
||||
fullscreen = false,
|
||||
vsync = true,
|
||||
fsaa = 0,
|
||||
borderless = false,
|
||||
resizable = false,
|
||||
centered = true,
|
||||
},
|
||||
modules = {
|
||||
event = true,
|
||||
@@ -345,6 +348,7 @@ function love.init()
|
||||
fsaa = c.screen.fsaa,
|
||||
resizable = c.screen.resizable,
|
||||
borderless = c.screen.borderless,
|
||||
centered = c.screen.centered,
|
||||
}), "Could not set screen mode")
|
||||
else
|
||||
error("Could not set screen mode")
|
||||
|
||||
Reference in New Issue
Block a user