Merge text.love
This commit is contained in:
commit
27805f178f
4
main.lua
4
main.lua
|
@ -72,7 +72,7 @@ function load_settings()
|
||||||
-- set up desired window dimensions
|
-- set up desired window dimensions
|
||||||
App.screen.flags.resizable = true
|
App.screen.flags.resizable = true
|
||||||
App.screen.flags.minwidth = math.min(App.screen.width, 200)
|
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
|
App.screen.width, App.screen.height = settings.width, settings.height
|
||||||
love.window.setMode(App.screen.width, App.screen.height, App.screen.flags)
|
love.window.setMode(App.screen.width, App.screen.height, App.screen.flags)
|
||||||
love.window.setPosition(settings.x, settings.y, settings.displayindex)
|
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.width = 40*em_width
|
||||||
App.screen.flags.resizable = true
|
App.screen.flags.resizable = true
|
||||||
App.screen.flags.minwidth = math.min(App.screen.width, 200)
|
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)
|
love.window.setMode(App.screen.width, App.screen.height, App.screen.flags)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue