AmendHub

jcs

/

textview

/

amendments

/

textview.c

Amendments on October 24, 2024

Remove an unnecessary variable

jcs made amendment 35 over 2 years ago

Amendments on October 22, 2024

Fix TVGetOffset when scrolled

jcs made amendment 34 over 2 years ago

Implement TVResize

Track last space globally so we can move back beyond chunk boundaries
jcs made amendment 33 over 2 years ago

Amendments on October 21, 2024


Amendments on October 18, 2024

Implement TVGetOffset for callers to map clicks to text

jcs made amendment 27 over 2 years ago

Fix some bugs, use Boolean instead of bool to avoid carrying stdint.h

Fix SET_CHUNKPTR_OFFSET mask
Properly draw multiple chunks on one line
Update cur_style properly
canvas is a pointer now so pass it to ClosePort properly
Don't modify view on creation to match bounds like TextEdit does
jcs made amendment 26 over 2 years ago

Minor cleanup

jcs made amendment 25 over 2 years ago

Amendments on October 17, 2024

Better error paths, fix signedness issue with width caches

jcs made amendment 24 over 2 years ago

Better error propagation, shorter DrawText loop, fix canvas disappearing

THINK Reference has a note in the OpenPort documentation that says
to not use a Handle for the GrafPort because it could move addresses
between being opened and closed and get lost. Since we were putting
it in the main TVRec which is a Handle and could move, our canvas
could get lost, which is why it was disappearing under heavy memory
pressure and drawing seemed to have no effect.
jcs made amendment 23 over 2 years ago

Bring scrolling up to date

jcs made amendment 22 over 2 years ago

Amendments on October 16, 2024

Move top/bottom tracking from chunk to line, fix autoscroll

jcs made amendment 21 over 2 years ago

Grow chunks to accommodate highest chunk on a line

jcs made amendment 20 over 2 years ago

Amendments on October 15, 2024

Implement incremental line calculation

jcs made amendment 19 over 2 years ago

Amendments on October 14, 2024

Combine both rewrites and use a list of shallow lines

Quickly recalculate line numbers and rects, then redraw the ones that
need drawing in the canvas.
jcs made amendment 18 over 2 years ago

Amendments on October 11, 2024

Rewrite #2: Store all text in text slabs

Chunks just retain style and text span information. This will be
easier to resize since storing text in chunks would have to shuffle
everything around.
jcs made amendment 17 over 2 years ago

Amendments on October 10, 2024

Rewrite to use Handles

jcs made amendment 16 over 2 years ago