no, make sure to compute line width after screen dimensions
[?]
May 25, 2022, 8:35 PM
PESSMQBJCOIA5PYNVKUG4D25VTFIG44QVCAOFRD4PKOJNW2AIHKACDependencies
- [2]
AD34IX2Zcouple more tests - [3]
IRV65LZPfold variables for screen dimensions into the app framework - [4]
3QNOKBFMbeginnings of a test harness - [5]
YKRF5V3Zstarting to load/save - [6]
2C7CTIQYmake space for multiple kinds of width - [7]
IMEJA43Lsnapshot - [8]
R53OF3ONone bug I've repeatedly run into while testing with Moby Dick - [9]
LUNH47XXmake text and drawings the same width - [10]
XNFTJHC4split keyboard handling between Text and Drawing - [11]
WDWXNW7Vslightly strange way to move points - [12]
A2QPFRFJmove - [13]
JVRL5TWLstore device-independent coordinates inside drawings - [14]
YTSPVDZHfirst successful pagedown test, first bug found by test - [15]
OIB2QPRCstart remembering where the cursor is drawn in px - [16]
2RXZ3PGObeginning of a new approach to scroll+wrap - [17]
AVTNUQYRbasic test-enabled framework - [18]
4RUI5X52a few tests for pageup, and a bugfix - [19]
AVQ5MC5Dfinish uppercasing all globals - [20]
VXORMHMEdelete experimental REPL - [21]
OTIBCAUJlove2d scaffold - [22]
QYIFOHW3first test! - [23]
JCSLDGAHbeginnings of support for multiple shapes - [24]
V5TP27FPctrl-+ and ctrl-- to adjust font size - [25]
FJ4L6N74draw lines by default - [26]
VHQCNMARseveral more modules - [27]
IZZVOCLBconfirm that we have access to all of the love API - [28]
PFT5Y2ZYmove - [*]
BULPIBEGbeginnings of a module for the text editor
Change contents
- replacement in text.lua at line 644
--? print('compute_fragments')--? print('compute_fragments', line_width) - edit in text.lua at line 1161
--? 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 pixelsLine_width = math.floor(App.screen.width/2/40)*40--? Line_width = 100 - edit in main.lua at line 85
-- maximum width available to either text or drawings, in pixelsLine_width = math.floor(App.screen.width/2/40)*40--? Line_width = 100 - edit in app.lua at line 17
--? print('==') - replacement in app.lua at line 46
if App.draw then App:draw() endif App.draw then App.draw() end