From: Ezhh Date: Wed, 21 Jun 2017 05:50:57 +0000 (+0100) Subject: Fix console resize issue when maximising game window (#6023) X-Git-Tag: 5.0.0~1077 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=76074ad81abe68aa2b7af4d072b659f60f1af38c;p=oweals%2Fminetest.git Fix console resize issue when maximising game window (#6023) --- diff --git a/src/guiChatConsole.cpp b/src/guiChatConsole.cpp index 7e90bf43a..0dbddf31c 100644 --- a/src/guiChatConsole.cpp +++ b/src/guiChatConsole.cpp @@ -186,8 +186,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(); }