rip out notion of Line_width
[?]
Jul 1, 2022, 2:50 AM
M6TH7VSZQGKDB7SFNN5K52WWAX5VTVNT6GOKNKTXPVZBT6NEYDOQCDependencies
- [2]
AJP4OSTJnew test - [3]
NUCZBE77bugfix: alignment of help screen - [4]
BZRRUIFQcorrect location of the line width slider - [5]
C45WCXJ2keep drawings within the line width slider as well - [6]
4J2L6JMRbugfix: deleting a selection spanning pages - [7]
CIQN2MDEbugfix: typing a capital letter deletes selection - [8]
HTWAM4NZbugfix: scrolling in left/right movements - [9]
MYC7XR5Qbugfix: lines that aren't drawn from the start - [10]
AJB4LFRBtry to maintain a reasonable line width - [11]
H2DPLWMVsnapshot: wrapping long lines at word boundaries - [12]
WLHI7KD3new globals: draw partial screen line up top - [13]
CVSRHMJ2experiment: slightly adaptive scrolling - [14]
4C375P53this is a bit clearer - [15]
L6XA5EY2test: moving a point - [16]
JFFUF5ALoverride mouse state lookups in tests - [17]
U7M4M2F7bugfix: don't rely on Screen_bottom1 while scrolling - [18]
HOSPP2ANcrisp font rendering - [19]
CUIV2LE5some typos - [20]
B3IWYWSRdelete another arg that can be deduced - [21]
CE4LZV4Tdrop last couple of manual tests - [22]
PESSMQBJno, make sure to compute line width after screen dimensions - [23]
IRJKWZWN. - [24]
BYG5CEMVsupport for naming points - [25]
BULPIBEGbeginnings of a module for the text editor - [26]
ESETRNLBbugfix: printing the first part of a line at the bottom made it seem non-wrapping - [27]
DGK5BPVIbugfix: UTF-8 in compute_fragments - [28]
AD34IX2Zcouple more tests - [29]
KMRJOSLYbugfix: delete selection before pasting - [30]
OTIBCAUJlove2d scaffold - [31]
5DOC2CBMextract a function - [32]
IWYLK45Kclicking to the right of a line within line width - [33]
YTSPVDZHfirst successful pagedown test, first bug found by test - [34]
LERERVPHkeep one screen line of overlap on pagedown - [35]
XNFTJHC4split keyboard handling between Text and Drawing - [36]
P66MRF3Ubugfix: don't append metadata when it already exists - [37]
QVDQMJXVavoid scrolling down if possible - [38]
DXT4QTAHa few more integer coordinates - [39]
R53OF3ONone bug I've repeatedly run into while testing with Moby Dick - [40]
DLQMM265scroll past first page - [41]
4AXV2HG4all pending manual tests done! - [42]
K464QQR4more defensive resize handling - [43]
S5VCAFKYcouple of tests for cursor down - [44]
42LVB4DEtest: naming a point - [45]
KAUD3YIKtests: deleting points/shapes - [46]
NHA7RUFImove current mode indicator slightly - [47]
N6V6UJ3Pthis implementation undo load-tests quite poorly - [48]
IRV65LZPfold variables for screen dimensions into the app framework - [49]
T3B4NLV3include a unit test - [50]
WY3JD6W6bugfix - [51]
VG75U7IMbugfix: typing should delete highlighted text - [52]
CVGE3SIGI feel confident now that page-down is working. - [53]
537TQ2QNsome more logging - [54]
MDXGMZU2disable all debug prints - [55]
R5OKMVVCfix a regression in line wrapping - [56]
R6GUSTBYdefault font size and line-height - [57]
OWK3U6VDtests for drawing polygons - [58]
RMKMPFT5fix a corner case when selecting text - [59]
CBPV5SSIstop handling nil screen_line_starting_pos everywhere - [60]
QKAMUWSBanother bugfix in scrolling while inserting text - [61]
4RUI5X52a few tests for pageup, and a bugfix - [62]
A2NV3WVOscrolling with up arrow - [63]
NZKYPBSKcheck for scroll when just typing - [64]
UWNHC4AAredo y computations - [65]
Z4KNS42Nto open a file without a terminal, drag it on! - [66]
PFT5Y2ZYmove - [67]
U52E2XZNfix a crash - [68]
HMODUNJEscroll on backspace - [69]
DAENUOGVeliminate assumptions that line length == size in bytes - [70]
ZLJGZYQGselect text with shift + mouseclick - [71]
T7SJSJIHtest: undo naming a point - [72]
ZZ2B5RPQextract variables for drawing padding - [73]
LUNH47XXmake text and drawings the same width - [74]
BOFNXP5Gclicking now moves the cursor even on long, wrapped lines - [75]
Y2ZIPXEMnew test - [76]
2ZRC7FUL. - [77]
S2YQBEYCsnapshot: test for a new regression - [78]
WTDKUACNrectangle and square shapes - [79]
73OCE2MCafter much struggle, a brute-force undo - [80]
YJGADSGKdelete unused arg - [81]
HYEAFRZ2split mouse_pressed events between Text and Drawing - [82]
7NQCCB34. - [83]
BLWAYPKVextract a module - [84]
QYIFOHW3first test! - [85]
3TCZ7ADHmove - [86]
7DYUAOI6test: undo moving point - [87]
GJLOKCYKbugfix: clicking past end of screen line - [88]
XOAHJ6M3similar tests for cursor up - [89]
7EQLPB3Obugfix: don't delete selection when moving cursor - [90]
LYN3L74Wcorrect commit f3abc2cbf2 - [91]
AOIRVVJArevert selection logic to before commit 3ffc2ed8f - [92]
OYXDYPGSget rid of debug variables - [93]
JY4VK7L2rename - [94]
EMHRPJ3Rno, that's not right - [95]
RF5ALVNYallow the window to be resized - [96]
DSLD74DKlots more tests - [97]
4WAFGF4Zselection bugfix - [98]
DFSDPDO7bugfix - [99]
FT3ZSQBCanswered an open question - [100]
KWOJ6XHEcut/copy selected text to clipboard - [101]
DRFE3B3Zmouse buttons are integers, not strings - [102]
JRGTJ2IWquite the frustrating bugfix - [103]
2POFQQLWkeep cursor on screen when pressing 'down' - [104]
CRYGI3LRmore drawing tests - [105]
7DPPMI2Uanother integer coordinate - [106]
5FW7YOFThighlight selection while dragging - [107]
4VKEE43Zbugfix - [108]
KOTI3MFGbugfix in previous commit - [109]
GCEF4N3Vstop repeatedly checking for line wrapping - [110]
MP2TBKU6bugfix: crash in Text.up() after return - [111]
NQH7DEEWbugfix: missed rename in one file - [112]
Y4VYNEGFtest: autosave after name/move/delete of point - [113]
DHI6IJCNselecting text and deleting selections - [114]
Z4XRNDTRfind text - [115]
XI5OALQXsome redundant calls - [116]
PHFWIFYKscroll on enter - [117]
K2X6G75Zstart writing some tests for drawings - [118]
3TFEAQSWstart using some globals - [119]
LAW2O3NWextract variable Margin_left - [120]
7CLGG7J2test: autosave after any shape - [121]
LXTTOB33extract a couple of files - [122]
WAR3HXHTtest both ways of selecting text with mouse - [123]
IMEJA43Lsnapshot - [124]
VHQCNMARseveral more modules - [125]
FYS7TCDWbugfix
Change contents
- edit in text_tests.lua at line 54
Line_width = App.screen.width - edit in text_tests.lua at line 65
Line_width = App.screen.width - edit in text_tests.lua at line 79
Line_width = App.screen.width - edit in text_tests.lua at line 95
Line_width = App.screen.width - edit in text_tests.lua at line 111
Line_width = App.screen.width - edit in text_tests.lua at line 128
Line_width = App.screen.width - edit in text_tests.lua at line 145
Line_width = App.screen.width - replacement in text_tests.lua at line 160
App.screen.init{width=80, height=80}App.screen.init{width=75, height=80} - edit in text_tests.lua at line 163
Line_width = 75 - replacement in text_tests.lua at line 182
App.screen.init{width=80, height=80}App.screen.init{width=75, height=80} - edit in text_tests.lua at line 185
Line_width = 75 - replacement in text_tests.lua at line 202
App.screen.init{width=80, height=80}App.screen.init{width=75, height=80} - edit in text_tests.lua at line 205
Line_width = 75 - replacement in text_tests.lua at line 225
App.screen.init{width=80, height=80}App.screen.init{width=75, height=80} - edit in text_tests.lua at line 228
Line_width = 75 - replacement in text_tests.lua at line 248
App.screen.init{width=200, height=80}App.screen.init{width=160, height=80} - edit in text_tests.lua at line 252
Line_width = 160 - replacement in text_tests.lua at line 259
-- click past the end of the screen line but within Line_widthApp.run_after_mouse_click(Line_width-2,y-2, 1)-- click past the end of the screen lineApp.run_after_mouse_click(App.screen.width-2,y-2, 1) - replacement in text_tests.lua at line 268
App.screen.init{width=80, height=80}App.screen.init{width=75, height=80} - edit in text_tests.lua at line 270
Line_width = 75 - replacement in text_tests.lua at line 289
App.screen.init{width=80, height=80}App.screen.init{width=75, height=80} - edit in text_tests.lua at line 291
Line_width = 75 - replacement in text_tests.lua at line 306
App.screen.init{width=80, height=80}App.screen.init{width=75, height=80} - edit in text_tests.lua at line 308
Line_width = 75 - replacement in text_tests.lua at line 323
App.screen.init{width=80, height=80}App.screen.init{width=75, height=80} - edit in text_tests.lua at line 325
Line_width = 75 - replacement in text_tests.lua at line 339
App.screen.init{width=80, height=80}App.screen.init{width=75, height=80} - edit in text_tests.lua at line 341
Line_width = 75 - replacement in text_tests.lua at line 360
App.screen.init{width=80, height=80}App.screen.init{width=75, height=80} - edit in text_tests.lua at line 362
Line_width = 75 - replacement in text_tests.lua at line 377
App.screen.init{width=80, height=80}App.screen.init{width=75, height=80} - edit in text_tests.lua at line 379
Line_width = 75 - replacement in text_tests.lua at line 394
App.screen.init{width=80, height=80}App.screen.init{width=75, height=80} - edit in text_tests.lua at line 396
Line_width = 75 - edit in text_tests.lua at line 415
Line_width = App.screen.width - edit in text_tests.lua at line 438
Line_width = App.screen.width - edit in text_tests.lua at line 459
Line_width = App.screen.width - edit in text_tests.lua at line 487
Line_width = App.screen.width - edit in text_tests.lua at line 503
Line_width = App.screen.width - edit in text_tests.lua at line 531
Line_width = App.screen.width - edit in text_tests.lua at line 547
Line_width = App.screen.width - edit in text_tests.lua at line 566
Line_width = App.screen.width - edit in text_tests.lua at line 589
Line_width = App.screen.width - edit in text_tests.lua at line 618
Line_width = App.screen.width - edit in text_tests.lua at line 633
Line_width = App.screen.width - edit in text_tests.lua at line 662
Line_width = App.screen.width - edit in text_tests.lua at line 685
Line_width = App.screen.width - edit in text_tests.lua at line 714
Line_width = App.screen.width - edit in text_tests.lua at line 740
Line_width = App.screen.width - edit in text_tests.lua at line 769
Line_width = App.screen.width - edit in text_tests.lua at line 796
Line_width = App.screen.width - edit in text_tests.lua at line 824
Line_width = App.screen.width - edit in text_tests.lua at line 851
Line_width = App.screen.width - edit in text_tests.lua at line 884
Line_width = 120 - edit in text_tests.lua at line 912
Line_width = 120 - edit in text_tests.lua at line 939
Line_width = App.screen.width - edit in text_tests.lua at line 966
Line_width = App.screen.width - edit in text_tests.lua at line 995
Line_width = 120 - edit in text_tests.lua at line 1021
Line_width = App.screen.width - edit in text_tests.lua at line 1045
Line_width = App.screen.width - edit in text_tests.lua at line 1073
Line_width = App.screen.width - edit in text_tests.lua at line 1099
Line_width = App.screen.width - edit in text_tests.lua at line 1127
Line_width = App.screen.width - edit in text_tests.lua at line 1149
Line_width = App.screen.width - edit in text_tests.lua at line 1167
Line_width = App.screen.width - edit in text_tests.lua at line 1197
Line_width = App.screen.width - edit in text_tests.lua at line 1225
Line_width = App.screen.width - edit in text_tests.lua at line 1254
Line_width = App.screen.width - edit in text_tests.lua at line 1282
Line_width = App.screen.width - replacement in text_tests.lua at line 1309
App.screen.init{width=120, height=200}App.screen.init{width=100, height=200} - edit in text_tests.lua at line 1311
Line_width = 100 - edit in text_tests.lua at line 1344
Line_width = 120 - edit in text_tests.lua at line 1371
Line_width = App.screen.width - edit in text_tests.lua at line 1398
Line_width = App.screen.width - edit in text_tests.lua at line 1412
Line_width = App.screen.width - edit in text_tests.lua at line 1429
Line_width = App.screen.width - edit in text_tests.lua at line 1446
Line_width = App.screen.width - edit in text_tests.lua at line 1464
Line_width = App.screen.width - edit in text_tests.lua at line 1482
Line_width = App.screen.width - edit in text_tests.lua at line 1499
Line_width = App.screen.width - edit in text_tests.lua at line 1533
Line_width = App.screen.width - replacement in text_tests.lua at line 1568
App.screen.init{width=80, height=80}App.screen.init{width=75, height=80} - edit in text_tests.lua at line 1570
Line_width = 75 - replacement in text.lua at line 14
function Text.draw(line, line_width, line_index)function Text.draw(line, line_index) - edit in text.lua at line 17
--? love.graphics.line(Line_width,0, Line_width,App.screen.height) - replacement in text.lua at line 23
Text.compute_fragments(line, line_width)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--? 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
-- draw with small line_width of 100-- 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)function Text.compute_fragments(line)--? print('compute_fragments', App.screen.width) - replacement in text.lua at line 104
--? print('x: '..tostring(x)..'; '..tostring(line_width-x)..'px to go')--? 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 thenwhile 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)if x + frag_width > App.screen.width thenwhile 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
local bpos = Text.nearest_pos_less_than(frag, line_width - x)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)--? print(frag, x, frag1_width, App.screen.width)assert(x + frag1_width <= App.screen.width) - replacement in text.lua at line 670
--? print('Text.to_pos_on_line', mx, my, 'width', Line_width)--? print('Text.to_pos_on_line', mx, my, 'width', App.screen.width) - replacement in text.lua at line 672
Text.compute_fragments(line, Line_width)Text.compute_fragments(line) - replacement in text.lua at line 897
Text.compute_fragments(line, Line_width)Text.compute_fragments(line) - replacement in text.lua at line 907
if x + frag_width > Line_width thenif x + frag_width > App.screen.width then - edit in main.lua at line 114
--? Line_width = 80 - edit in main.lua at line 172
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 charsLine_width = math.min(40*App.width(Em), App.screen.width-50) - edit in main.lua at line 208
--? love.graphics.setColor(0, 1, 0)--? love.graphics.line(Line_width,0, Line_width,App.screen.height) - replacement in main.lua at line 263
y, Screen_bottom1.pos = Text.draw(line, Line_width, line_index)y, Screen_bottom1.pos = Text.draw(line, line_index) - replacement in help.lua at line 49
love.graphics.rectangle('fill', Margin_left,drawing.y, Line_width, math.max(Drawing.pixels(drawing.h),y-drawing.y))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
love.graphics.rectangle('fill', Margin_left,drawing.y, Line_width, math.max(Drawing.pixels(drawing.h),y-drawing.y))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
App.screen.init{width=Margin_left+300, height=300}App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels - edit in drawing_tests.lua at line 29
Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels - replacement in drawing_tests.lua at line 70
App.screen.init{width=Margin_left+300, height=300}App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels - edit in drawing_tests.lua at line 72
Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels - replacement in drawing_tests.lua at line 97
App.screen.init{width=Margin_left+300, height=300}App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels - edit in drawing_tests.lua at line 99
Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels - replacement in drawing_tests.lua at line 124
App.screen.init{width=Margin_left+300, height=300}App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels - edit in drawing_tests.lua at line 126
Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels - replacement in drawing_tests.lua at line 139
App.screen.init{width=Margin_left+300, height=300}App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels - edit in drawing_tests.lua at line 141
Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels - replacement in drawing_tests.lua at line 166
App.screen.init{width=Margin_left+300, height=300}App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels - edit in drawing_tests.lua at line 168
Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels - replacement in drawing_tests.lua at line 196
App.screen.init{width=Margin_left+300, height=300}App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels - edit in drawing_tests.lua at line 198
Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels - replacement in drawing_tests.lua at line 233
App.screen.init{width=Margin_left+300, height=300}App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels - edit in drawing_tests.lua at line 235
Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels - replacement in drawing_tests.lua at line 276
App.screen.init{width=Margin_left+300, height=300}App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels - edit in drawing_tests.lua at line 278
Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels - replacement in drawing_tests.lua at line 311
App.screen.init{width=Margin_left+300, height=300}App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels - edit in drawing_tests.lua at line 313
Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels - replacement in drawing_tests.lua at line 354
App.screen.init{width=Margin_left+300, height=300}App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels - edit in drawing_tests.lua at line 356
Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels - replacement in drawing_tests.lua at line 396
App.screen.init{width=Margin_left+300, height=300}App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels - edit in drawing_tests.lua at line 398
Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels - replacement in drawing_tests.lua at line 452
App.screen.init{width=Margin_left+300, height=300}App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels - edit in drawing_tests.lua at line 454
Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels - replacement in drawing_tests.lua at line 477
App.screen.init{width=Margin_left+300, height=300}App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels - edit in drawing_tests.lua at line 479
Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels - replacement in drawing_tests.lua at line 505
App.screen.init{width=Margin_left+300, height=300}App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels - edit in drawing_tests.lua at line 507
Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels - replacement in drawing_tests.lua at line 528
App.screen.init{width=Margin_left+300, height=300}App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels - edit in drawing_tests.lua at line 530
Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels - replacement in drawing_tests.lua at line 558
App.screen.init{width=Margin_left+300, height=300}App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels - edit in drawing_tests.lua at line 560
Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels - replacement in drawing_tests.lua at line 585
App.screen.init{width=Margin_left+300, height=300}App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels - edit in drawing_tests.lua at line 587
Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels - replacement in drawing_tests.lua at line 630
App.screen.init{width=Margin_left+300, height=300}App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels - edit in drawing_tests.lua at line 632
Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels - replacement in drawing_tests.lua at line 679
App.screen.init{width=Margin_left+300, height=300}App.screen.init{width=Margin_left+256, height=300} -- drawing coordinates 1:1 with pixels - edit in drawing_tests.lua at line 681
Line_width = Margin_left+256 -- drawing coordinates 1:1 with pixels - replacement in drawing.lua at line 11
if pmx < Line_width and pmy > line.y and pmy < line.y+Drawing.pixels(line.h) thenif pmx < App.screen.width and pmy > line.y and pmy < line.y+Drawing.pixels(line.h) then - replacement in drawing.lua at line 13
love.graphics.rectangle('line', Margin_left,line.y, Line_width-Margin_left,Drawing.pixels(line.h))love.graphics.rectangle('line', Margin_left,line.y, App.screen.width-Margin_left,Drawing.pixels(line.h)) - replacement in drawing.lua at line 15
icon[Current_drawing_mode](Line_width-22, line.y+4)icon[Current_drawing_mode](App.screen.width-22, line.y+4) - replacement in drawing.lua at line 17
icon[Previous_drawing_mode](Line_width-22, line.y+4)icon[Previous_drawing_mode](App.screen.width-22, line.y+4) - replacement in drawing.lua at line 207
return y >= drawing.y and y < drawing.y + Drawing.pixels(drawing.h) and x >= Margin_left and x < Line_widthreturn 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
return math.floor(n*(Line_width-Margin_left)/256)return math.floor(n*(App.screen.width-Margin_left)/256) - replacement in drawing.lua at line 691
return math.floor(n*256/(Line_width-Margin_left))return math.floor(n*256/(App.screen.width-Margin_left))