Fix console not being properly resized after window size changed (#6020)

master
Zeno- 2017-06-20 20:36:58 +10:00 committed by Loïc Blot
parent 0fcaf9fb1b
commit 318106223f
1 changed files with 1 additions and 0 deletions

View File

@ -213,6 +213,7 @@ void GUIChatConsole::reformatConsole()
s32 rows = m_desired_height / m_fontsize.Y - 1; // make room for the input prompt
if (cols <= 0 || rows <= 0)
cols = rows = 0;
recalculateConsolePosition();
m_chat_backend->reformat(cols, rows);
}