-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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".
- Loading branch information
1 parent
98d1440
commit eefa5d1
Showing
4 changed files
with
40 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,9 @@ slow-unit-* | |
timeout-* | ||
slow-unit-* | ||
fuzz-*.log | ||
xcuserdata | ||
crash-* | ||
DerivedData | ||
.deriveddata | ||
.build | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters