From 2025172e525ab8e40433989cee6833550937b3c7 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 30 Jun 2022 22:04:27 -0700 Subject: initialize screen width to something reasonable --- main.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.lua b/main.lua index 039588c..9e0f886 100644 --- a/main.lua +++ b/main.lua @@ -102,10 +102,10 @@ function App.initialize(arg) love.keyboard.setTextInput(true) -- bring up keyboard on touch screen love.keyboard.setKeyRepeat(true) - initialize_window_geometry() - initialize_font_settings(20) + initialize_window_geometry() + love.graphics.setBackgroundColor(1,1,1) if #arg > 0 then @@ -135,7 +135,7 @@ function initialize_window_geometry() love.window.setMode(0, 0) -- maximize App.screen.width, App.screen.height, App.screen.flags = love.window.getMode() -- shrink slightly to account for window decoration - App.screen.width = App.screen.width-100 + App.screen.width = 40*App.width(Em) App.screen.height = App.screen.height-100 App.screen.flags.resizable = true App.screen.flags.minwidth = math.min(App.screen.width, 200) -- cgit 1.4.1-2-gfad0