rip out notion of Line_width

[?]
Jul 1, 2022, 2:50 AM
M6TH7VSZQGKDB7SFNN5K52WWAX5VTVNT6GOKNKTXPVZBT6NEYDOQC

Dependencies

  • [2] AJP4OSTJ new test
  • [3] NUCZBE77 bugfix: alignment of help screen
  • [4] BZRRUIFQ correct location of the line width slider
  • [5] C45WCXJ2 keep drawings within the line width slider as well
  • [6] 4J2L6JMR bugfix: deleting a selection spanning pages
  • [7] CIQN2MDE bugfix: typing a capital letter deletes selection
  • [8] HTWAM4NZ bugfix: scrolling in left/right movements
  • [9] MYC7XR5Q bugfix: lines that aren't drawn from the start
  • [10] AJB4LFRB try to maintain a reasonable line width
  • [11] H2DPLWMV snapshot: wrapping long lines at word boundaries
  • [12] WLHI7KD3 new globals: draw partial screen line up top
  • [13] CVSRHMJ2 experiment: slightly adaptive scrolling
  • [14] 4C375P53 this is a bit clearer
  • [15] L6XA5EY2 test: moving a point
  • [16] JFFUF5AL override mouse state lookups in tests
  • [17] U7M4M2F7 bugfix: don't rely on Screen_bottom1 while scrolling
  • [18] HOSPP2AN crisp font rendering
  • [19] CUIV2LE5 some typos
  • [20] B3IWYWSR delete another arg that can be deduced
  • [21] CE4LZV4T drop last couple of manual tests
  • [22] PESSMQBJ no, make sure to compute line width after screen dimensions
  • [23] IRJKWZWN .
  • [24] BYG5CEMV support for naming points
  • [25] BULPIBEG beginnings of a module for the text editor
  • [26] ESETRNLB bugfix: printing the first part of a line at the bottom made it seem non-wrapping
  • [27] DGK5BPVI bugfix: UTF-8 in compute_fragments
  • [28] AD34IX2Z couple more tests
  • [29] KMRJOSLY bugfix: delete selection before pasting
  • [30] OTIBCAUJ love2d scaffold
  • [31] 5DOC2CBM extract a function
  • [32] IWYLK45K clicking to the right of a line within line width
  • [33] YTSPVDZH first successful pagedown test, first bug found by test
  • [34] LERERVPH keep one screen line of overlap on pagedown
  • [35] XNFTJHC4 split keyboard handling between Text and Drawing
  • [36] P66MRF3U bugfix: don't append metadata when it already exists
  • [37] QVDQMJXV avoid scrolling down if possible
  • [38] DXT4QTAH a few more integer coordinates
  • [39] R53OF3ON one bug I've repeatedly run into while testing with Moby Dick
  • [40] DLQMM265 scroll past first page
  • [41] 4AXV2HG4 all pending manual tests done!
  • [42] K464QQR4 more defensive resize handling
  • [43] S5VCAFKY couple of tests for cursor down
  • [44] 42LVB4DE test: naming a point
  • [45] KAUD3YIK tests: deleting points/shapes
  • [46] NHA7RUFI move current mode indicator slightly
  • [47] N6V6UJ3P this implementation undo load-tests quite poorly
  • [48] IRV65LZP fold variables for screen dimensions into the app framework
  • [49] T3B4NLV3 include a unit test
  • [50] WY3JD6W6 bugfix
  • [51] VG75U7IM bugfix: typing should delete highlighted text
  • [52] CVGE3SIG I feel confident now that page-down is working.
  • [53] 537TQ2QN some more logging
  • [54] MDXGMZU2 disable all debug prints
  • [55] R5OKMVVC fix a regression in line wrapping
  • [56] R6GUSTBY default font size and line-height
  • [57] OWK3U6VD tests for drawing polygons
  • [58] RMKMPFT5 fix a corner case when selecting text
  • [59] CBPV5SSI stop handling nil screen_line_starting_pos everywhere
  • [60] QKAMUWSB another bugfix in scrolling while inserting text
  • [61] 4RUI5X52 a few tests for pageup, and a bugfix
  • [62] A2NV3WVO scrolling with up arrow
  • [63] NZKYPBSK check for scroll when just typing
  • [64] UWNHC4AA redo y computations
  • [65] Z4KNS42N to open a file without a terminal, drag it on!
  • [66] PFT5Y2ZY move
  • [67] U52E2XZN fix a crash
  • [68] HMODUNJE scroll on backspace
  • [69] DAENUOGV eliminate assumptions that line length == size in bytes
  • [70] ZLJGZYQG select text with shift + mouseclick
  • [71] T7SJSJIH test: undo naming a point
  • [72] ZZ2B5RPQ extract variables for drawing padding
  • [73] LUNH47XX make text and drawings the same width
  • [74] BOFNXP5G clicking now moves the cursor even on long, wrapped lines
  • [75] Y2ZIPXEM new test
  • [76] 2ZRC7FUL .
  • [77] S2YQBEYC snapshot: test for a new regression
  • [78] WTDKUACN rectangle and square shapes
  • [79] 73OCE2MC after much struggle, a brute-force undo
  • [80] YJGADSGK delete unused arg
  • [81] HYEAFRZ2 split mouse_pressed events between Text and Drawing
  • [82] 7NQCCB34 .
  • [83] BLWAYPKV extract a module
  • [84] QYIFOHW3 first test!
  • [85] 3TCZ7ADH move
  • [86] 7DYUAOI6 test: undo moving point
  • [87] GJLOKCYK bugfix: clicking past end of screen line
  • [88] XOAHJ6M3 similar tests for cursor up
  • [89] 7EQLPB3O bugfix: don't delete selection when moving cursor
  • [90] LYN3L74W correct commit f3abc2cbf2
  • [91] AOIRVVJA revert selection logic to before commit 3ffc2ed8f
  • [92] OYXDYPGS get rid of debug variables
  • [93] JY4VK7L2 rename
  • [94] EMHRPJ3R no, that's not right
  • [95] RF5ALVNY allow the window to be resized
  • [96] DSLD74DK lots more tests
  • [97] 4WAFGF4Z selection bugfix
  • [98] DFSDPDO7 bugfix
  • [99] FT3ZSQBC answered an open question
  • [100] KWOJ6XHE cut/copy selected text to clipboard
  • [101] DRFE3B3Z mouse buttons are integers, not strings
  • [102] JRGTJ2IW quite the frustrating bugfix
  • [103] 2POFQQLW keep cursor on screen when pressing 'down'
  • [104] CRYGI3LR more drawing tests
  • [105] 7DPPMI2U another integer coordinate
  • [106] 5FW7YOFT highlight selection while dragging
  • [107] 4VKEE43Z bugfix
  • [108] KOTI3MFG bugfix in previous commit
  • [109] GCEF4N3V stop repeatedly checking for line wrapping
  • [110] MP2TBKU6 bugfix: crash in Text.up() after return
  • [111] NQH7DEEW bugfix: missed rename in one file
  • [112] Y4VYNEGF test: autosave after name/move/delete of point
  • [113] DHI6IJCN selecting text and deleting selections
  • [114] Z4XRNDTR find text
  • [115] XI5OALQX some redundant calls
  • [116] PHFWIFYK scroll on enter
  • [117] K2X6G75Z start writing some tests for drawings
  • [118] 3TFEAQSW start using some globals
  • [119] LAW2O3NW extract variable Margin_left
  • [120] 7CLGG7J2 test: autosave after any shape
  • [121] LXTTOB33 extract a couple of files
  • [122] WAR3HXHT test both ways of selecting text with mouse
  • [123] IMEJA43L snapshot
  • [124] VHQCNMAR several more modules
  • [125] FYS7TCDW bugfix

Change contents

  • edit in text_tests.lua at line 54
    [2.174][2.174:206]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 65
    [10.186][10.186:218]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 79
    [10.232][10.232:264]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 95
    [10.769][10.769:801]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 111
    [10.1341][10.1341:1373]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 128
    [10.2011][10.2011:2043]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 145
    [10.290][10.290:322]()
    Line_width = App.screen.width
  • replacement in text_tests.lua at line 160
    [10.114][10.114:153]()
    App.screen.init{width=80, height=80}
    [10.114]
    [10.153]
    App.screen.init{width=75, height=80}
  • edit in text_tests.lua at line 163
    [10.229][10.229:247]()
    Line_width = 75
  • replacement in text_tests.lua at line 182
    [9.220][9.220:259]()
    App.screen.init{width=80, height=80}
    [9.220]
    [9.259]
    App.screen.init{width=75, height=80}
  • edit in text_tests.lua at line 185
    [9.335][9.335:353]()
    Line_width = 75
  • replacement in text_tests.lua at line 202
    [10.1014][10.1014:1053]()
    App.screen.init{width=80, height=80}
    [10.1014]
    [10.1053]
    App.screen.init{width=75, height=80}
  • edit in text_tests.lua at line 205
    [10.1129][10.1129:1147]()
    Line_width = 75
  • replacement in text_tests.lua at line 225
    [10.177][10.177:216]()
    App.screen.init{width=80, height=80}
    [10.177]
    [10.216]
    App.screen.init{width=75, height=80}
  • edit in text_tests.lua at line 228
    [10.330][10.330:348]()
    Line_width = 75
  • replacement in text_tests.lua at line 248
    [10.208][10.208:248]()
    App.screen.init{width=200, height=80}
    [10.208]
    [10.248]
    App.screen.init{width=160, height=80}
  • edit in text_tests.lua at line 252
    [10.404][10.404:423]()
    Line_width = 160
  • replacement in text_tests.lua at line 259
    [10.676][10.676:741](),[10.754][10.754:803]()
    -- click past the end of the screen line but within Line_width
    App.run_after_mouse_click(Line_width-2,y-2, 1)
    [10.676]
    [10.803]
    -- click past the end of the screen line
    App.run_after_mouse_click(App.screen.width-2,y-2, 1)
  • replacement in text_tests.lua at line 268
    [10.96][10.96:135]()
    App.screen.init{width=80, height=80}
    [10.96]
    [10.135]
    App.screen.init{width=75, height=80}
  • edit in text_tests.lua at line 270
    [10.167][10.167:185]()
    Line_width = 75
  • replacement in text_tests.lua at line 289
    [10.190][10.190:229]()
    App.screen.init{width=80, height=80}
    [10.190]
    [10.229]
    App.screen.init{width=75, height=80}
  • edit in text_tests.lua at line 291
    [10.257][10.257:275]()
    Line_width = 75
  • replacement in text_tests.lua at line 306
    [10.140][10.140:179]()
    App.screen.init{width=80, height=80}
    [10.140]
    [10.179]
    App.screen.init{width=75, height=80}
  • edit in text_tests.lua at line 308
    [10.207][10.207:225]()
    Line_width = 75
  • replacement in text_tests.lua at line 323
    [10.137][10.137:176]()
    App.screen.init{width=80, height=80}
    [10.137]
    [10.176]
    App.screen.init{width=75, height=80}
  • edit in text_tests.lua at line 325
    [10.204][10.204:222]()
    Line_width = 75
  • replacement in text_tests.lua at line 339
    [7.172][7.172:211]()
    App.screen.init{width=80, height=80}
    [7.172]
    [7.211]
    App.screen.init{width=75, height=80}
  • edit in text_tests.lua at line 341
    [7.239][7.239:257]()
    Line_width = 75
  • replacement in text_tests.lua at line 360
    [10.149][10.149:188]()
    App.screen.init{width=80, height=80}
    [10.149]
    [10.188]
    App.screen.init{width=75, height=80}
  • edit in text_tests.lua at line 362
    [10.216][10.216:234]()
    Line_width = 75
  • replacement in text_tests.lua at line 377
    [10.104][10.104:143]()
    App.screen.init{width=80, height=80}
    [10.104]
    [10.143]
    App.screen.init{width=75, height=80}
  • edit in text_tests.lua at line 379
    [10.171][10.171:189]()
    Line_width = 75
  • replacement in text_tests.lua at line 394
    [10.641][10.641:680]()
    App.screen.init{width=80, height=80}
    [10.641]
    [10.680]
    App.screen.init{width=75, height=80}
  • edit in text_tests.lua at line 396
    [10.715][10.715:733]()
    Line_width = 75
  • edit in text_tests.lua at line 415
    [6.213][6.213:245]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 438
    [10.2613][10.2613:2645]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 459
    [10.3403][10.3403:3435]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 487
    [10.1684][10.1684:1716]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 503
    [10.4595][10.4595:4627]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 531
    [10.5818][10.5818:5850]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 547
    [10.350][10.350:382]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 566
    [10.729][10.729:761]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 589
    [10.215][10.215:247]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 618
    [10.199][10.199:231]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 633
    [10.6392][10.6392:6424]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 662
    [10.7602][10.7602:7634]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 685
    [10.8780][10.8780:8812]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 714
    [10.1596][10.1596:1628]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 740
    [10.10269][10.10269:10301]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 769
    [10.11598][10.11598:11630]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 796
    [10.12966][10.12966:12998]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 824
    [10.14592][10.14592:14624]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 851
    [10.16329][10.16329:16361]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 884
    [10.18454][10.18454:18473]()
    Line_width = 120
  • edit in text_tests.lua at line 912
    [10.19673][10.19673:19692]()
    Line_width = 120
  • edit in text_tests.lua at line 939
    [10.20974][10.20974:21006]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 966
    [10.22414][10.22414:22446]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 995
    [10.24028][10.24028:24047]()
    Line_width = 120
  • edit in text_tests.lua at line 1021
    [10.25144][10.25144:25176]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 1045
    [10.26121][10.26121:26153]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 1073
    [10.27600][10.27600:27632]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 1099
    [10.28995][10.28995:29027]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 1127
    [10.30428][10.30428:30460]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 1149
    [10.402][10.402:434]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 1167
    [10.266][10.266:298]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 1197
    [8.286][8.286:318]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 1225
    [8.1781][8.1781:1813]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 1254
    [8.3356][8.3356:3388]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 1282
    [8.4767][8.4767:4799]()
    Line_width = App.screen.width
  • replacement in text_tests.lua at line 1309
    [10.31582][10.31582:31623]()
    App.screen.init{width=120, height=200}
    [10.31582]
    [10.31623]
    App.screen.init{width=100, height=200}
  • edit in text_tests.lua at line 1311
    [10.31679][10.31679:31698]()
    Line_width = 100
  • edit in text_tests.lua at line 1344
    [10.33539][10.33539:33558]()
    Line_width = 120
  • edit in text_tests.lua at line 1371
    [10.34777][10.34777:34809]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 1398
    [10.2437][10.2437:2469]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 1412
    [10.36333][10.36333:36365]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 1429
    [10.37194][10.37194:37226]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 1446
    [10.38042][10.38042:38074]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 1464
    [10.38973][10.38973:39005]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 1482
    [10.39872][10.39872:39904]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 1499
    [10.40692][10.40692:40724]()
    Line_width = App.screen.width
  • edit in text_tests.lua at line 1533
    [10.42216][10.42216:42248]()
    Line_width = App.screen.width
  • replacement in text_tests.lua at line 1568
    [10.144][10.144:183]()
    App.screen.init{width=80, height=80}
    [10.144]
    [10.183]
    App.screen.init{width=75, height=80}
  • edit in text_tests.lua at line 1570
    [10.211][10.211:229]()
    Line_width = 75
  • replacement in text.lua at line 14
    [10.103][10.1:50](),[10.1568][10.1:50]()
    function Text.draw(line, line_width, line_index)
    [10.103]
    [10.1129]
    function Text.draw(line, line_index)
  • edit in text.lua at line 17
    [10.141][4.3:72]()
    --? love.graphics.line(Line_width,0, Line_width,App.screen.height)
  • replacement in text.lua at line 23
    [10.1850][10.1850:1895]()
    Text.compute_fragments(line, line_width)
    [10.1850]
    [10.103]
    Text.compute_fragments(line)
  • replacement in text.lua at line 33
    [10.26][10.110:359](),[10.22][10.110:359](),[10.44][10.2068:2108](),[10.62][10.2068:2108](),[10.184][10.2068:2108](),[10.201][10.2068:2108](),[10.359][10.2068:2108](),[10.2068][10.2068:2108]()
    --? print('('..s(x)..','..s(y)..') '..frag..'('..s(frag_width)..' vs '..s(line_width)..') '..s(line_index)..' vs '..s(Screen_top1.line)..'; '..s(pos)..' vs '..s(Screen_top1.pos)..'; bottom: '..s(Screen_bottom1.line)..'/'..s(Screen_bottom1.pos))
    if x + frag_width > line_width then
    [10.26]
    [10.2203]
    --? print('('..s(x)..','..s(y)..') '..frag..'('..s(frag_width)..' vs '..s(App.screen.width)..') '..s(line_index)..' vs '..s(Screen_top1.line)..'; '..s(pos)..' vs '..s(Screen_top1.pos)..'; bottom: '..s(Screen_bottom1.line)..'/'..s(Screen_bottom1.pos))
    if x + frag_width > App.screen.width then
  • replacement in text.lua at line 83
    [10.2690][10.2690:2728]()
    -- draw with small line_width of 100
    [10.2690]
    [10.850]
    -- draw with small screen width of 100
  • replacement in text.lua at line 96
    [10.681][10.1:51](),[10.1842][10.1:51](),[10.2051][10.1:51](),[10.2153][10.1:51](),[10.4097][10.1:51](),[10.6259][10.1:51](),[10.8374][10.1:51](),[10.42][10.1:51](),[10.51][10.1:46]()
    function Text.compute_fragments(line, line_width)
    --? print('compute_fragments', line_width)
    [10.42]
    [10.51]
    function Text.compute_fragments(line)
    --? print('compute_fragments', App.screen.width)
  • replacement in text.lua at line 104
    [10.808][10.304:380](),[10.2940][10.304:380](),[10.304][10.304:380]()
    --? print('x: '..tostring(x)..'; '..tostring(line_width-x)..'px to go')
    [10.2940]
    [10.380]
    --? print('x: '..tostring(x)..'; '..tostring(App.screen.width-x)..'px to go')
  • replacement in text.lua at line 106
    [10.453][10.453:493](),[10.6796][10.493:536](),[10.493][10.493:536](),[10.536][10.1477:1528](),[10.1528][10.536:571](),[10.536][10.536:571](),[10.571][10.398:451]()
    if x + frag_width > line_width then
    while x + frag_width > line_width do
    --? print(x, frag, frag_width, line_width)
    if x < 0.8*line_width then
    --? print(frag, x, frag_width, line_width)
    [10.453]
    [10.571]
    if x + frag_width > App.screen.width then
    while x + frag_width > App.screen.width do
    --? print(x, frag, frag_width, App.screen.width)
    if x < 0.8*App.screen.width then
    --? print(frag, x, frag_width, App.screen.width)
  • replacement in text.lua at line 113
    [10.672][10.761:833]()
    local bpos = Text.nearest_pos_less_than(frag, line_width - x)
    [10.672]
    [10.833]
    local bpos = Text.nearest_pos_less_than(frag, App.screen.width - x)
  • replacement in text.lua at line 120
    [10.2993][10.452:506](),[10.6986][10.452:506](),[10.506][10.7036:7084](),[10.7036][10.7036:7084]()
    --? print(frag, x, frag1_width, line_width)
    assert(x + frag1_width <= line_width)
    [10.2993]
    [10.998]
    --? print(frag, x, frag1_width, App.screen.width)
    assert(x + frag1_width <= App.screen.width)
  • replacement in text.lua at line 670
    [10.1193][10.1294:1358]()
    --? print('Text.to_pos_on_line', mx, my, 'width', Line_width)
    [10.1193]
    [10.3]
    --? print('Text.to_pos_on_line', mx, my, 'width', App.screen.width)
  • replacement in text.lua at line 672
    [10.35][10.35:80]()
    Text.compute_fragments(line, Line_width)
    [10.35]
    [10.80]
    Text.compute_fragments(line)
  • replacement in text.lua at line 897
    [10.2315][10.2315:2360]()
    Text.compute_fragments(line, Line_width)
    [10.2315]
    [10.2360]
    Text.compute_fragments(line)
  • replacement in text.lua at line 907
    [10.1923][10.2587:2627](),[10.3986][10.2587:2627](),[10.2587][10.2587:2627]()
    if x + frag_width > Line_width then
    [10.1923]
    [10.2567]
    if x + frag_width > App.screen.width then
  • edit in main.lua at line 114
    [10.39][10.2018:2040]()
    --? Line_width = 80
  • edit in main.lua at line 172
    [10.477][10.477:540]()
    Line_width = math.min(40*App.width(Em), App.screen.width-50)
  • edit in main.lua at line 182
    [10.139][10.139:140](),[10.140][10.221:288](),[10.221][10.221:288](),[10.337][10.337:440]()
    -- maximum width available to either text or drawings, in pixels
    -- readable text width is 50-75 chars
    Line_width = math.min(40*App.width(Em), App.screen.width-50)
  • edit in main.lua at line 208
    [10.337][10.1210:1317]()
    --? love.graphics.setColor(0, 1, 0)
    --? love.graphics.line(Line_width,0, Line_width,App.screen.height)
  • replacement in main.lua at line 263
    [9.2201][10.335:407](),[10.213][10.335:407]()
    y, Screen_bottom1.pos = Text.draw(line, Line_width, line_index)
    [9.2201]
    [10.4250]
    y, Screen_bottom1.pos = Text.draw(line, line_index)
  • replacement in help.lua at line 49
    [10.8466][3.1487:1605]()
    love.graphics.rectangle('fill', Margin_left,drawing.y, Line_width, math.max(Drawing.pixels(drawing.h),y-drawing.y))
    [10.8466]
    [10.8578]
    love.graphics.rectangle('fill', Margin_left,drawing.y, App.screen.width, math.max(Drawing.pixels(drawing.h),y-drawing.y))
  • replacement in help.lua at line 128
    [10.10798][3.3131:3249]()
    love.graphics.rectangle('fill', Margin_left,drawing.y, Line_width, math.max(Drawing.pixels(drawing.h),y-drawing.y))
    [10.10798]
    [10.10910]
    love.graphics.rectangle('fill', Margin_left,drawing.y, App.screen.width, math.max(Drawing.pixels(drawing.h),y-drawing.y))
  • replacement in drawing_tests.lua at line 27
    [10.501][10.353:406](),[10.353][10.353:406]()
    App.screen.init{width=Margin_left+300, height=300}
    [10.501]
    [10.406]
    App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels
  • edit in drawing_tests.lua at line 29
    [10.450][5.184:255]()
    Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels
  • replacement in drawing_tests.lua at line 70
    [10.313][10.313:366]()
    App.screen.init{width=Margin_left+300, height=300}
    [10.313]
    [10.366]
    App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels
  • edit in drawing_tests.lua at line 72
    [10.410][5.256:327]()
    Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels
  • replacement in drawing_tests.lua at line 97
    [10.1916][10.1916:1969]()
    App.screen.init{width=Margin_left+300, height=300}
    [10.1916]
    [10.1969]
    App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels
  • edit in drawing_tests.lua at line 99
    [10.2013][5.328:399]()
    Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels
  • replacement in drawing_tests.lua at line 124
    [10.3500][10.3500:3553]()
    App.screen.init{width=Margin_left+300, height=300}
    [10.3500]
    [10.3553]
    App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels
  • edit in drawing_tests.lua at line 126
    [10.3597][5.400:471]()
    Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels
  • replacement in drawing_tests.lua at line 139
    [10.4277][10.4277:4330]()
    App.screen.init{width=Margin_left+300, height=300}
    [10.4277]
    [10.4330]
    App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels
  • edit in drawing_tests.lua at line 141
    [10.4374][5.472:543]()
    Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels
  • replacement in drawing_tests.lua at line 166
    [10.5906][10.5906:5959]()
    App.screen.init{width=Margin_left+300, height=300}
    [10.5906]
    [10.5959]
    App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels
  • edit in drawing_tests.lua at line 168
    [10.6003][5.544:615]()
    Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels
  • replacement in drawing_tests.lua at line 196
    [10.847][10.847:900]()
    App.screen.init{width=Margin_left+300, height=300}
    [10.847]
    [10.900]
    App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels
  • edit in drawing_tests.lua at line 198
    [10.944][5.616:687]()
    Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels
  • replacement in drawing_tests.lua at line 233
    [10.2783][10.2783:2836]()
    App.screen.init{width=Margin_left+300, height=300}
    [10.2783]
    [10.2836]
    App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels
  • edit in drawing_tests.lua at line 235
    [10.2880][5.688:759]()
    Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels
  • replacement in drawing_tests.lua at line 276
    [10.5167][10.5167:5220]()
    App.screen.init{width=Margin_left+300, height=300}
    [10.5167]
    [10.5220]
    App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels
  • edit in drawing_tests.lua at line 278
    [10.5264][5.760:831]()
    Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels
  • replacement in drawing_tests.lua at line 311
    [10.7265][10.7265:7318]()
    App.screen.init{width=Margin_left+300, height=300}
    [10.7265]
    [10.7318]
    App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels
  • edit in drawing_tests.lua at line 313
    [10.7362][5.832:903]()
    Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels
  • replacement in drawing_tests.lua at line 354
    [10.33][10.242:295](),[10.242][10.242:295]()
    App.screen.init{width=Margin_left+300, height=300}
    [10.33]
    [10.295]
    App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels
  • edit in drawing_tests.lua at line 356
    [10.339][5.904:975]()
    Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels
  • replacement in drawing_tests.lua at line 396
    [10.214][10.112:165](),[10.112][10.112:165]()
    App.screen.init{width=Margin_left+300, height=300}
    [10.214]
    [10.165]
    App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels
  • edit in drawing_tests.lua at line 398
    [10.209][5.976:1047]()
    Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels
  • replacement in drawing_tests.lua at line 452
    [10.173][10.173:226]()
    App.screen.init{width=Margin_left+300, height=300}
    [10.173]
    [10.226]
    App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels
  • edit in drawing_tests.lua at line 454
    [10.270][5.1048:1119]()
    Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels
  • replacement in drawing_tests.lua at line 477
    [10.700][10.158:211](),[10.158][10.158:211]()
    App.screen.init{width=Margin_left+300, height=300}
    [10.700]
    [10.211]
    App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels
  • edit in drawing_tests.lua at line 479
    [10.255][5.1120:1191]()
    Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels
  • replacement in drawing_tests.lua at line 505
    [10.1468][10.1468:1521]()
    App.screen.init{width=Margin_left+300, height=300}
    [10.1468]
    [10.1521]
    App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels
  • edit in drawing_tests.lua at line 507
    [10.1565][5.1192:1263]()
    Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels
  • replacement in drawing_tests.lua at line 528
    [10.2844][10.2844:2897]()
    App.screen.init{width=Margin_left+300, height=300}
    [10.2844]
    [10.2897]
    App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels
  • edit in drawing_tests.lua at line 530
    [10.2941][5.1264:1335]()
    Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels
  • replacement in drawing_tests.lua at line 558
    [10.4357][10.4357:4410]()
    App.screen.init{width=Margin_left+300, height=300}
    [10.4357]
    [10.4410]
    App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels
  • edit in drawing_tests.lua at line 560
    [10.4454][5.1336:1407]()
    Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels
  • replacement in drawing_tests.lua at line 585
    [10.211][10.211:264]()
    App.screen.init{width=Margin_left+300, height=300}
    [10.211]
    [10.264]
    App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels
  • edit in drawing_tests.lua at line 587
    [10.308][5.1408:1479]()
    Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels
  • replacement in drawing_tests.lua at line 630
    [10.137][10.137:190]()
    App.screen.init{width=Margin_left+300, height=300}
    [10.137]
    [10.190]
    App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels
  • edit in drawing_tests.lua at line 632
    [10.234][5.1480:1551]()
    Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels
  • replacement in drawing_tests.lua at line 679
    [10.209][10.209:262]()
    App.screen.init{width=Margin_left+300, height=300}
    [10.209]
    [10.262]
    App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels
  • edit in drawing_tests.lua at line 681
    [10.306][5.1552:1623]()
    Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels
  • replacement in drawing.lua at line 11
    [10.1580][5.1625:1709]()
    if pmx < Line_width and pmy > line.y and pmy < line.y+Drawing.pixels(line.h) then
    [10.1580]
    [10.316]
    if pmx < App.screen.width and pmy > line.y and pmy < line.y+Drawing.pixels(line.h) then
  • replacement in drawing.lua at line 13
    [10.359][5.1710:1813]()
    love.graphics.rectangle('line', Margin_left,line.y, Line_width-Margin_left,Drawing.pixels(line.h))
    [10.359]
    [10.18445]
    love.graphics.rectangle('line', Margin_left,line.y, App.screen.width-Margin_left,Drawing.pixels(line.h))
  • replacement in drawing.lua at line 15
    [10.18484][5.1814:1872]()
    icon[Current_drawing_mode](Line_width-22, line.y+4)
    [10.18484]
    [10.523]
    icon[Current_drawing_mode](App.screen.width-22, line.y+4)
  • replacement in drawing.lua at line 17
    [10.532][5.1873:1932]()
    icon[Previous_drawing_mode](Line_width-22, line.y+4)
    [10.532]
    [10.589]
    icon[Previous_drawing_mode](App.screen.width-22, line.y+4)
  • replacement in drawing.lua at line 207
    [10.2271][5.1933:2043]()
    return y >= drawing.y and y < drawing.y + Drawing.pixels(drawing.h) and x >= Margin_left and x < Line_width
    [10.2271]
    [10.795]
    return y >= drawing.y and y < drawing.y + Drawing.pixels(drawing.h) and x >= Margin_left and x < App.screen.width
  • replacement in drawing.lua at line 688
    [10.27500][5.2044:2096]()
    return math.floor(n*(Line_width-Margin_left)/256)
    [10.27500]
    [10.27529]
    return math.floor(n*(App.screen.width-Margin_left)/256)
  • replacement in drawing.lua at line 691
    [10.27579][5.2097:2149]()
    return math.floor(n*256/(Line_width-Margin_left))
    [10.27579]
    [10.11944]
    return math.floor(n*256/(App.screen.width-Margin_left))