Fix console resize issue when maximising game window (#6023)

This commit is contained in:
Ezhh 2017-06-21 06:50:57 +01:00 committed by SmallJoker
parent 8f8001e6d2
commit 2d210073f2

View 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();
}