extract variables for drawing padding
[?]
Jun 14, 2022, 5:22 PM
ZZ2B5RPQKANSIWAZA4ATDXVBK3XLYIORJ7I4IH2WQOG5JAPJFZ4ACDependencies
- [2]
LAW2O3NWextract variable Margin_left - [3]
3OKKTUT4up and down arrow now moving by screen line where possible - [4]
CVSRHMJ2experiment: slightly adaptive scrolling - [5]
DLQMM265scroll past first page - [6]
T3B4NLV3include a unit test - [7]
UWNHC4AAredo y computations - [8]
2RXZ3PGObeginning of a new approach to scroll+wrap - [9]
ZPUQSPQPextract a few methods - [10]
LXTTOB33extract a couple of files - [11]
242L3OQXbugfix: ensure Cursor_line is always on a text line - [12]
TRNWIQN6more precise height calculation when scrolling up as much as possible while keeping cursor on screen - [13]
4C375P53this is a bit clearer - [14]
KOYAJWE4extract a couple more methods - [15]
U7M4M2F7bugfix: don't rely on Screen_bottom1 while scrolling - [16]
HOSPP2ANcrisp font rendering - [17]
YPHKZVWMextract a new variable - [18]
OMTGHWMAyet another bugfix. But for how long? - [19]
MDXGMZU2disable all debug prints - [20]
YJGADSGKdelete unused arg - [*]
BULPIBEGbeginnings of a module for the text editor - [*]
OTIBCAUJlove2d scaffold - [*]
YKRF5V3Zstarting to load/save
Change contents
- replacement in text_tests.lua at line 430
local drawing_height = 20 + App.screen.width / 2 -- defaultlocal drawing_height = Drawing_padding_height + App.screen.width / 2 -- default - replacement in text.lua at line 405
y = y - 20 - Drawing.pixels(Lines[Screen_top1.line].h)y = y - Drawing_padding_height - Drawing.pixels(Lines[Screen_top1.line].h) - replacement in text.lua at line 630
y = y + 20 + Drawing.pixels(Lines[Cursor1.line].h)y = y + Drawing_padding_height + Drawing.pixels(Lines[Cursor1.line].h) - replacement in text.lua at line 665
local h = 20 + Drawing.pixels(Lines[top2.line-1].h)local h = Drawing_padding_height + Drawing.pixels(Lines[top2.line-1].h) - edit in main.lua at line 72[2.2612][24.3]
Drawing_padding_top = 10Drawing_padding_bottom = 10Drawing_padding_height = Drawing_padding_top + Drawing_padding_bottom - replacement in main.lua at line 247
y = y+10 -- paddingy = y+Drawing_padding_top - replacement in main.lua at line 250
y = y + Drawing.pixels(line.h) + 10 -- paddingy = y + Drawing.pixels(line.h) + Drawing_padding_bottom