no, make sure to compute line width after screen dimensions

[?]
May 25, 2022, 8:35 PM
PESSMQBJCOIA5PYNVKUG4D25VTFIG44QVCAOFRD4PKOJNW2AIHKAC

Dependencies

  • [2] AD34IX2Z couple more tests
  • [3] IRV65LZP fold variables for screen dimensions into the app framework
  • [4] 3QNOKBFM beginnings of a test harness
  • [5] YKRF5V3Z starting to load/save
  • [6] 2C7CTIQY make space for multiple kinds of width
  • [7] IMEJA43L snapshot
  • [8] R53OF3ON one bug I've repeatedly run into while testing with Moby Dick
  • [9] LUNH47XX make text and drawings the same width
  • [10] XNFTJHC4 split keyboard handling between Text and Drawing
  • [11] WDWXNW7V slightly strange way to move points
  • [12] A2QPFRFJ move
  • [13] JVRL5TWL store device-independent coordinates inside drawings
  • [14] YTSPVDZH first successful pagedown test, first bug found by test
  • [15] OIB2QPRC start remembering where the cursor is drawn in px
  • [16] 2RXZ3PGO beginning of a new approach to scroll+wrap
  • [17] AVTNUQYR basic test-enabled framework
  • [18] 4RUI5X52 a few tests for pageup, and a bugfix
  • [19] AVQ5MC5D finish uppercasing all globals
  • [20] VXORMHME delete experimental REPL
  • [21] OTIBCAUJ love2d scaffold
  • [22] QYIFOHW3 first test!
  • [23] JCSLDGAH beginnings of support for multiple shapes
  • [24] V5TP27FP ctrl-+ and ctrl-- to adjust font size
  • [25] FJ4L6N74 draw lines by default
  • [26] VHQCNMAR several more modules
  • [27] IZZVOCLB confirm that we have access to all of the love API
  • [28] PFT5Y2ZY move
  • [*] BULPIBEG beginnings of a module for the text editor

Change contents

  • replacement in text.lua at line 644
    [3.51][3.6669:6702]()
    --? print('compute_fragments')
    [3.51]
    [3.51]
    --? print('compute_fragments', line_width)
  • edit in text.lua at line 1161
    [3.2209]
    [3.2209]
    --? print('Text.populate_screen_line_starting_pos')
  • edit in main.lua at line 64
    [3.23][3.3:4](),[3.25][3.3:4](),[3.137][3.3:4](),[3.157][3.3:4](),[3.1267][3.3:4](),[3.45][3.3:4](),[3.4][3.1207:1272](),[3.1272][3.205:255](),[3.255][3.4218:4239]()
    -- maximum width available to either text or drawings, in pixels
    Line_width = math.floor(App.screen.width/2/40)*40
    --? Line_width = 100
  • edit in main.lua at line 85
    [2.2183]
    [3.47]
    -- maximum width available to either text or drawings, in pixels
    Line_width = math.floor(App.screen.width/2/40)*40
    --? Line_width = 100
  • edit in app.lua at line 17
    [3.2321]
    [3.2321]
    --? print('==')
  • replacement in app.lua at line 46
    [3.784][3.2511:2549]()
    if App.draw then App:draw() end
    [3.784]
    [3.824]
    if App.draw then App.draw() end