sokoban.love/0031-on.resize

7 lines
286 B
Plaintext
Raw Normal View History

2023-11-15 15:37:36 +00:00
on.resize = function()
_, _, Safe_width, Safe_height = love.window.getSafeArea()
Editor_state.right = math.min(100+30*App.width('m'), Safe_width*2/3)
Editor_state.width = Editor_state.right - Editor_state.left
Editor_state.bottom = Safe_height/2-5
2023-11-15 15:37:36 +00:00
Text.redraw_all(Editor_state)
end