mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Fix love.window.setMode to use the proper defaults for window settings that aren't specified.
--HG-- branch : minor
This commit is contained in:
@@ -123,20 +123,8 @@ int w_setMode(lua_State *L)
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
// Defaults come from WindowSettings itself.
|
||||
WindowSettings settings;
|
||||
// Defaults
|
||||
settings.fstype = Window::FULLSCREEN_DESKTOP;
|
||||
settings.fullscreen = false;
|
||||
settings.vsync = 1;
|
||||
settings.msaa = 0;
|
||||
settings.resizable = false;
|
||||
settings.minwidth = 1;
|
||||
settings.minheight = 1;
|
||||
settings.borderless = false;
|
||||
settings.centered = false;
|
||||
settings.display = 0;
|
||||
settings.highdpi = false;
|
||||
|
||||
readWindowSettings(L, 3, settings);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user