Fix console scrolling bottleneck.

This commit is contained in:
Jonas 'Sortie' Termansen 2016-09-23 23:27:36 +02:00
parent 4f60e65f83
commit 0e78aec1c3
1 changed files with 0 additions and 6 deletions

View File

@ -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++;