diff --git a/main.lua b/main.lua index 0f764a8..27ba4bd 100644 --- a/main.lua +++ b/main.lua @@ -72,7 +72,7 @@ function load_settings() -- set up desired window dimensions App.screen.flags.resizable = true App.screen.flags.minwidth = math.min(App.screen.width, 200) - App.screen.flags.minheight = math.min(App.screen.width, 200) + App.screen.flags.minheight = math.min(App.screen.height, 200) App.screen.width, App.screen.height = settings.width, settings.height love.window.setMode(App.screen.width, App.screen.height, App.screen.flags) love.window.setPosition(settings.x, settings.y, settings.displayindex) @@ -102,7 +102,7 @@ function initialize_window_geometry(em_width) App.screen.width = 40*em_width App.screen.flags.resizable = true App.screen.flags.minwidth = math.min(App.screen.width, 200) - App.screen.flags.minheight = math.min(App.screen.width, 200) + App.screen.flags.minheight = math.min(App.screen.height, 200) love.window.setMode(App.screen.width, App.screen.height, App.screen.flags) end