aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEzhh <owlecho@live.com>2017-06-21 06:50:57 +0100
committerSmallJoker <mk939@ymail.com>2018-06-03 17:31:59 +0200
commit849fe19f8cc89dbe92b24e6020e3a1618a3171e2 (patch)
treec7d39387ce6758679d4cb6ebe1063445dbf1150e
parentcfa62166944f6d414d1c09756fef226dabcc5056 (diff)
downloadminetest-849fe19f8cc89dbe92b24e6020e3a1618a3171e2.tar.gz
minetest-849fe19f8cc89dbe92b24e6020e3a1618a3171e2.tar.bz2
minetest-849fe19f8cc89dbe92b24e6020e3a1618a3171e2.zip
Fix console resize issue when maximising game window (#6023)
-rw-r--r--src/guiChatConsole.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/guiChatConsole.cpp b/src/guiChatConsole.cpp
index 91ed91301..ba73a58e2 100644
--- a/src/guiChatConsole.cpp
+++ b/src/guiChatConsole.cpp
@@ -204,8 +204,8 @@ void GUIChatConsole::draw()
// scale current console height to new window size
if (m_screensize.Y != 0)
m_height = m_height * screensize.Y / m_screensize.Y;
- m_desired_height = m_desired_height_fraction * m_screensize.Y;
m_screensize = screensize;
+ m_desired_height = m_desired_height_fraction * m_screensize.Y;
reformatConsole();
}