allow the window to be resized

[?]
Jun 7, 2022, 8:19 PM
RF5ALVNYB2FMU7LRRD5LMQC7P6OO4BX3NXIGWNZTQ2CD62RBRRFAC

Dependencies

Change contents

  • replacement in main.lua at line 90
    [3.1800][3.1800:1862]()
    App.screen.width, App.screen.height = love.window.getMode()
    [3.1800]
    [3.1862]
    App.screen.width, App.screen.height, App.screen.flags = love.window.getMode()
  • replacement in main.lua at line 94
    [3.2002][3.2002:2061]()
    love.window.setMode(App.screen.width, App.screen.height)
    [3.2002]
    [3.47]
    App.screen.flags.resizable = true
    App.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
    [2.41]
    [2.41]
    function love.resize(w, h)
    --? print(("Window resized to width: %d and height: %d."):format(w, h))
    App.screen.width, App.screen.height = w, h
    Line_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