initialize screen width to something reasonable

This commit is contained in:
Kartik K. Agaram 2022-06-30 22:04:27 -07:00
parent 0cd678581b
commit 2025172e52
1 changed files with 3 additions and 3 deletions

View File

@ -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)