adjust button location on resize/rotate

This commit is contained in:
Kartik K. Agaram 2023-11-16 13:34:39 -08:00
parent 3345d055c9
commit 60dce24988
2 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,5 @@
on.initialize = function()
math.randomseed(os.time())
_, _, Safe_width, Safe_height = love.window.getSafeArea()
initialize_layout()
new()
end

View File

@ -1,4 +1,5 @@
initialize_layout = function()
_, _, Safe_width, Safe_height = love.window.getSafeArea()
X = App.screen.width/4
Y = App.screen.height/4
local w, h = App.screen.width/5, App.screen.height/5