From 0ce0db9e1b5d6096a85d13d6d0ec13a8a18477cd Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Thu, 19 Sep 2013 19:05:40 -0300 Subject: [PATCH] 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. --- src/modules/window/Window.cpp | 4 ++-- src/modules/window/Window.h | 4 ++-- src/modules/window/wrap_Window.cpp | 4 ++-- src/scripts/boot.lua | 4 ++-- src/scripts/boot.lua.h | 5 ++--- 5 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/modules/window/Window.cpp b/src/modules/window/Window.cpp index 0afe8bee2..0c01835f3 100644 --- a/src/modules/window/Window.cpp +++ b/src/modules/window/Window.cpp @@ -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) diff --git a/src/modules/window/Window.h b/src/modules/window/Window.h index b56a05d4e..f0bf74b9f 100644 --- a/src/modules/window/Window.h +++ b/src/modules/window/Window.h @@ -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 diff --git a/src/modules/window/wrap_Window.cpp b/src/modules/window/wrap_Window.cpp index 71ff5c81e..c6d47fe86 100644 --- a/src/modules/window/wrap_Window.cpp +++ b/src/modules/window/wrap_Window.cpp @@ -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); diff --git a/src/scripts/boot.lua b/src/scripts/boot.lua index 14966a721..ac963aba4 100644 --- a/src/scripts/boot.lua +++ b/src/scripts/boot.lua @@ -283,8 +283,8 @@ function love.init() window = { width = 800, height = 600, - minwidth = 100, - minheight = 100, + minwidth = 0, + minheight = 0, fullscreen = false, fullscreentype = "normal", display = 1, diff --git a/src/scripts/boot.lua.h b/src/scripts/boot.lua.h index bd08673c8..9c865a6fa 100644 --- a/src/scripts/boot.lua.h +++ b/src/scripts/boot.lua.h @@ -511,9 +511,8 @@ const unsigned char boot_lua[] = 0x09, 0x09, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x20, 0x3d, 0x20, 0x7b, 0x0a, 0x09, 0x09, 0x09, 0x77, 0x69, 0x64, 0x74, 0x68, 0x20, 0x3d, 0x20, 0x38, 0x30, 0x30, 0x2c, 0x0a, 0x09, 0x09, 0x09, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x20, 0x3d, 0x20, 0x36, 0x30, 0x30, 0x2c, 0x0a, - 0x09, 0x09, 0x09, 0x6d, 0x69, 0x6e, 0x77, 0x69, 0x64, 0x74, 0x68, 0x20, 0x3d, 0x20, 0x31, 0x30, 0x30, 0x2c, 0x0a, - 0x09, 0x09, 0x09, 0x6d, 0x69, 0x6e, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x20, 0x3d, 0x20, 0x31, 0x30, 0x30, - 0x2c, 0x0a, + 0x09, 0x09, 0x09, 0x6d, 0x69, 0x6e, 0x77, 0x69, 0x64, 0x74, 0x68, 0x20, 0x3d, 0x20, 0x30, 0x2c, 0x0a, + 0x09, 0x09, 0x09, 0x6d, 0x69, 0x6e, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x20, 0x3d, 0x20, 0x30, 0x2c, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x73, 0x63, 0x72, 0x65, 0x65, 0x6e, 0x20, 0x3d, 0x20, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x2c, 0x0a, 0x09, 0x09, 0x09, 0x66, 0x75, 0x6c, 0x6c, 0x73, 0x63, 0x72, 0x65, 0x65, 0x6e, 0x74, 0x79, 0x70, 0x65, 0x20,