mirror of
https://github.com/Haui1112/minetest.git
synced 2024-10-23 17:26:12 +02:00
Fix console resize issue when maximising game window (#6023)
This commit is contained in:
parent
b8237099b2
commit
76074ad81a
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue