Fix console resize issue when maximising game window (#6023)
authorEzhh <owlecho@live.com>
Wed, 21 Jun 2017 05:50:57 +0000 (06:50 +0100)
committerSmallJoker <mk939@ymail.com>
Sun, 3 Jun 2018 15:31:59 +0000 (17:31 +0200)
src/guiChatConsole.cpp

index 91ed913015f991db3b250ed5f76938de2f4c774b..ba73a58e2faceade0df53b6a48d7b83af860fe2f 100644 (file)
@@ -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();
        }