Commit 7782bc3
authored
Fix drawLogBuffer for scrolling (#394)
When logBuffer has logBufferMaxLines, the drawing needs to start shifted up by displayHeight % lineHeight so that the first line drops off a bit, and not the last. Now printing to display really just works.
(I moved the `length++` and removed the `else` because both sides of the condition started with it.)1 parent 546fe9b commit 7782bc3
1 file changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
829 | 829 | | |
830 | 830 | | |
831 | 831 | | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
832 | 837 | | |
| 838 | + | |
833 | 839 | | |
834 | 840 | | |
835 | | - | |
836 | 841 | | |
837 | 842 | | |
838 | | - | |
| 843 | + | |
839 | 844 | | |
840 | 845 | | |
841 | 846 | | |
842 | 847 | | |
843 | | - | |
844 | | - | |
845 | | - | |
846 | 848 | | |
847 | 849 | | |
848 | 850 | | |
849 | 851 | | |
850 | | - | |
| 852 | + | |
851 | 853 | | |
852 | 854 | | |
853 | 855 | | |
| |||
0 commit comments