diff options
author | Zeno- <kde.psych@gmail.com> | 2017-06-20 20:36:58 +1000 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-06-20 12:36:58 +0200 |
commit | 318106223fc7351bd879980c17ee9c4bee65a272 (patch) | |
tree | e8c3bf09e0c9aeb1a6c794ab91396126c999546a /src | |
parent | 0fcaf9fb1b61caaf8ed78a5d3005b1d9d1c43b57 (diff) | |
download | minetest-318106223fc7351bd879980c17ee9c4bee65a272.tar.gz minetest-318106223fc7351bd879980c17ee9c4bee65a272.tar.bz2 minetest-318106223fc7351bd879980c17ee9c4bee65a272.zip |
Fix console not being properly resized after window size changed (#6020)
Diffstat (limited to 'src')
-rw-r--r-- | src/guiChatConsole.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |