Merge text.love

[?]
Jul 11, 2023, 6:11 PM
2JLMNZZI7AQD3SOUQQZGP2URNAUJ27XJTOOFXFPMPUQVPVX3LAXAC

Dependencies

Change contents

  • file deletion: source.lua (----------)source.lua (----------)
    [5.2][5.177715:177749](),[5.2][5.177715:177749](),[5.177749][5.165829:165829]()
    function source.initialize_window_geometry()
    -- Initialize window width/height and make window resizable.
    --
    -- I get tempted to have opinions about window dimensions here, but they're
    -- non-portable:
    -- - maximizing doesn't work on mobile and messes things up
    -- - maximizing keeps the title bar on screen in Linux, but off screen on
    -- Windows. And there's no way to get the height of the title bar.
    -- It seems more robust to just follow LÖVE's default window size until
    -- someone overrides it.
    App.screen.width, App.screen.height, App.screen.flags = App.screen.size()
    source.initialize_window_geometry()
    Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width-Margin_right)
  • file deletion: run.lua (----------)run.lua (----------)
    [5.2][5.183867:183898](),[5.2][5.183867:183898](),[5.183898][5.178107:178107]()
    function run.initialize_window_geometry()
    -- Initialize window width/height and make window resizable.
    --
    -- I get tempted to have opinions about window dimensions here, but they're
    -- non-portable:
    -- - maximizing doesn't work on mobile and messes things up
    -- - maximizing keeps the title bar on screen in Linux, but off screen on
    -- Windows. And there's no way to get the height of the title bar.
    -- It seems more robust to just follow LÖVE's default window size until
    -- someone overrides it.
    run.initialize_window_geometry()
    Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width-Margin_right)
    Editor_state.font_height = font_height
    Editor_state.line_height = math.floor(font_height*1.3)
  • replacement in main.lua at line 114
    [5.4223][2.8:53]()
    initialize_window_geometry(App.width('m'))
    [5.4223]
    [5.4322]
    initialize_window_geometry()
  • replacement in main.lua at line 120
    [5.4543][5.4543:4589]()
    function initialize_window_geometry(em_width)
    [5.4543]
    [3.519]
    function initialize_window_geometry()