Fix console resize issue when maximising game window (#6023)
authorEzhh <owlecho@live.com>
Wed, 21 Jun 2017 05:50:57 +0000 (06:50 +0100)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Wed, 21 Jun 2017 05:50:57 +0000 (07:50 +0200)
src/guiChatConsole.cpp

index 7e90bf43a123290513bcaf8618fe04df35f35adc..0dbddf31cd530b097d4bbd85d7ebbca58ab8347b 100644 (file)
@@ -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();
        }