From: Zeno- Date: Tue, 20 Jun 2017 10:36:58 +0000 (+1000) Subject: Fix console not being properly resized after window size changed (#6020) X-Git-Tag: 5.0.0~1081 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=318106223fc7351bd879980c17ee9c4bee65a272;p=oweals%2Fminetest.git Fix console not being properly resized after window size changed (#6020) --- diff --git a/src/guiChatConsole.cpp b/src/guiChatConsole.cpp index f8c3ed4c1..ecd280f5e 100644 --- a/src/guiChatConsole.cpp +++ b/src/guiChatConsole.cpp @@ -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); }