diff options
Diffstat (limited to 'gui/console.cpp')
-rw-r--r-- | gui/console.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/console.cpp b/gui/console.cpp index 464216a0ad..a8ad636761 100644 --- a/gui/console.cpp +++ b/gui/console.cpp @@ -162,7 +162,7 @@ void ConsoleDialog::open() { // the console, or even outright crashes. This means _scrollLine is not // preserved, but that's a tiny sacrifice. - handleScreenChanged(); + reflowLayout(); Dialog::open(); if (_promptStartPos == -1) { @@ -214,7 +214,7 @@ void ConsoleDialog::drawLine(int line, bool restoreBg) { } } -void ConsoleDialog::handleScreenChanged() { +void ConsoleDialog::reflowLayout() { init(); _scrollLine = _promptEndPos / kLineWidth; @@ -222,7 +222,7 @@ void ConsoleDialog::handleScreenChanged() { _scrollLine = _linesPerPage - 1; updateScrollBuffer(); - Dialog::handleScreenChanged(); + Dialog::reflowLayout(); draw(); } |