You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Better approach at rendering the bottom exposed region of the buffer, and in the
process, I cleaned up some historical baggage and a nice upgrade.
The nice upgrade is that I am using the exposed region as intended for the Mac,
over time, the code regressed and was redrawing the whole buffer, now it does
what it is supposed to do.
The parameter "offset" to "drawTerminalContents" was deprecated when I moved to
the UIScrollView backing for the iOS terminal, so I have eliminated it.
Rather than computing "remains" at the start, we compute at the end, and rather
than the float->int->float conversions, we use:
bounds.height.truncatingRemainder(dividingBy: cellHeight)
Additionally, given that there is a font change redraw issue not addressed here,
I am keeping the old clearing code (and I have fixed it now), but I have also
implemented the alterantive which should draw a lot less, so as soon as I
fix the font change issue, I can remove the code from the caller of
"drawTerminalContents".
0 commit comments