[*] Superficially fix the ConsoleTTY redraw issue on initial overflow by removing an optimization
This commit is contained in:
parent
5b5b6fa920
commit
1510beaf49
@ -810,20 +810,18 @@ namespace Aurora::Console::ConsoleTTY
|
||||
{
|
||||
if (this->screenBuffer.size() > maxLines)
|
||||
{
|
||||
for (int i = startIndex + maxLines; i < this->currentHeight; i++)
|
||||
// TODO (Reece): Removing optimization bc it was broken. This is a nightmare.
|
||||
auto indexBeforePadding = (this->GetBannerFootBorder() ? 1 + this->topLogPadding : 0) + this->topLogPaddingExtra;
|
||||
auto startIndex = this->GetTopBorder() + this->GetBannerLines() + indexBeforePadding;
|
||||
|
||||
for (int i = startIndex; i < this->currentHeight; i++)
|
||||
{
|
||||
this->BlankLine(i);
|
||||
}
|
||||
|
||||
TTYScrollBuffer(delta);
|
||||
|
||||
for (int i = indexBeforePadding; i < startIndex; i++)
|
||||
{
|
||||
this->BlankLine(i);
|
||||
}
|
||||
|
||||
forceRedrawIfFalse = true;
|
||||
drawPos = startIndex + maxLines - delta;
|
||||
this->screenBuffer.clear();
|
||||
addMessages(this->messages);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user