mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix console scrolling bottleneck.
This commit is contained in:
parent
4f60e65f83
commit
0e78aec1c3
1 changed files with 0 additions and 6 deletions
|
@ -286,12 +286,6 @@ void TextTerminal::UpdateCursor(TextBuffer* textbuf)
|
|||
void TextTerminal::Newline(TextBuffer* textbuf)
|
||||
{
|
||||
TextPos pos(column, line);
|
||||
TextChar tc = textbuf->GetChar(pos);
|
||||
if ( !(tc.attr & ATTR_CHAR) )
|
||||
{
|
||||
tc.attr |= ATTR_CHAR;
|
||||
textbuf->SetChar(pos, tc);
|
||||
}
|
||||
column = 0;
|
||||
if ( line < textbuf->Height()-1 )
|
||||
line++;
|
||||
|
|
Loading…
Add table
Reference in a new issue