mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
The minwidth and minheight window flags have default values of 0 instead of 100 (resolves issue #735).
The real minimum window width and height are still system-dependent.
This commit is contained in:
@@ -44,8 +44,8 @@ WindowFlags::WindowFlags()
|
||||
, vsync(true)
|
||||
, fsaa(0)
|
||||
, resizable(false)
|
||||
, minwidth(100)
|
||||
, minheight(100)
|
||||
, minwidth(0)
|
||||
, minheight(0)
|
||||
, borderless(false)
|
||||
, centered(true)
|
||||
, display(0)
|
||||
|
||||
@@ -125,8 +125,8 @@ struct WindowFlags
|
||||
bool vsync; // = true
|
||||
int fsaa; // = 0
|
||||
bool resizable; // = false
|
||||
int minwidth; // = 100
|
||||
int minheight; // = 100
|
||||
int minwidth; // = 0
|
||||
int minheight; // = 0
|
||||
bool borderless; // = false
|
||||
bool centered; // = true
|
||||
int display; // = 0
|
||||
|
||||
@@ -68,8 +68,8 @@ int w_setMode(lua_State *L)
|
||||
flags.vsync = luax_boolflag(L, 3, "vsync", true);
|
||||
flags.fsaa = luax_intflag(L, 3, "fsaa", 0);
|
||||
flags.resizable = luax_boolflag(L, 3, "resizable", false);
|
||||
flags.minwidth = luax_intflag(L, 3, "minwidth", 100);
|
||||
flags.minheight = luax_intflag(L, 3, "minheight", 100);
|
||||
flags.minwidth = luax_intflag(L, 3, "minwidth", 0);
|
||||
flags.minheight = luax_intflag(L, 3, "minheight", 0);
|
||||
flags.borderless = luax_boolflag(L, 3, "borderless", false);
|
||||
flags.centered = luax_boolflag(L, 3, "centered", true);
|
||||
flags.display = luax_intflag(L, 3, "display", 1);
|
||||
|
||||
Reference in New Issue
Block a user