new globals: draw partial screen line up top

[?]
May 20, 2022, 1:58 PM
WLHI7KD3LJTQH6V7RLVJWGZUR4YQK6LN4OIUMIN45BGMMQGN6RNQC

Dependencies

  • [2] LUNH47XX make text and drawings the same width
  • [3] A2QPFRFJ move
  • [4] 3TFEAQSW start using some globals
  • [5] H2DPLWMV snapshot: wrapping long lines at word boundaries
  • [6] 5L7K4GBD clicking to the right of a wrapped line
  • [7] BOFNXP5G clicking now moves the cursor even on long, wrapped lines
  • [*] BULPIBEG beginnings of a module for the text editor
  • [*] OTIBCAUJ love2d scaffold
  • [*] JCSLDGAH beginnings of support for multiple shapes
  • [*] PWHZPJJM always show current filename in window title

Change contents

  • replacement in text.lua at line 22
    [4.2151][4.2151:2185]()
    y = y + math.floor(15*Zoom)
    [4.2151]
    [4.2185]
    if line_index > Screen_top_line or pos >= Top_screen_line_starting_pos then
    y = y + math.floor(15*Zoom)
    end
  • replacement in text.lua at line 32
    [4.2206][4.2206:2254]()
    love.graphics.draw(frag_text, x,y, 0, Zoom)
    [4.2206]
    [4.2254]
    if line_index > Screen_top_line or pos >= Top_screen_line_starting_pos then
    love.graphics.draw(frag_text, x,y, 0, Zoom)
    end
  • edit in main.lua at line 50
    [3.68]
    [11.1240]
    Top_screen_line_starting_pos = 1 -- when top of screen starts in between a wrapped line
    Bottom_screen_line_starting_pos = 1 -- when bottom of screen starts in between a wrapped line
  • edit in main.lua at line 71
    [12.43]
    [2.87]
    --? Line_width = 100