allow the window to be resized
[?]
Jun 7, 2022, 8:19 PM
RF5ALVNYB2FMU7LRRD5LMQC7P6OO4BX3NXIGWNZTQ2CD62RBRRFACDependencies
- [2]
AJB4LFRBtry to maintain a reasonable line width - [3]
AD34IX2Zcouple more tests - [4]
OTIBCAUJlove2d scaffold - [5]
73OCE2MCafter much struggle, a brute-force undo - [6]
GQSGEYSM.
Change contents
- replacement in main.lua at line 90
App.screen.width, App.screen.height = love.window.getMode()App.screen.width, App.screen.height, App.screen.flags = love.window.getMode() - replacement in main.lua at line 94
love.window.setMode(App.screen.width, App.screen.height)App.screen.flags.resizable = trueApp.screen.flags.minwidth = math.min(App.screen.width, 200)App.screen.flags.minheight = math.min(App.screen.width, 200)love.window.updateMode(App.screen.width, App.screen.height, App.screen.flags) - edit in main.lua at line 116
function love.resize(w, h)--? print(("Window resized to width: %d and height: %d."):format(w, h))App.screen.width, App.screen.height = w, hLine_width = math.min(40*App.width(Em), App.screen.width-50)-- Should I Text.redraw_all() here to reset text fragments? It doesn't seem-- to be needed, based on repeatedly resizing the window up and down.end