about summary refs log tree commit diff stats
path: root/run.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-01-01 17:59:10 -0800
committerKartik K. Agaram <vc@akkartik.com>2023-01-01 17:59:10 -0800
commitc7de47440b96f03e3eabe43ea0f46b894ebd86d7 (patch)
tree0a24be1a84184a5c832b3b0cb0cf37e2521102cc /run.lua
parentd6f955f144f97559958388b6d501e0904d27d10b (diff)
downloadlines.love-c7de47440b96f03e3eabe43ea0f46b894ebd86d7.tar.gz
typo
Diffstat (limited to 'run.lua')
-rw-r--r--run.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/run.lua b/run.lua
index 2284c4f..a736e20 100644
--- a/run.lua
+++ b/run.lua
@@ -60,7 +60,7 @@ function run.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)
@@ -91,7 +91,7 @@ function run.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