mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Fix console resize issue when maximising game window (#6023)
This commit is contained in:
parent
cfa6216694
commit
849fe19f8c
1 changed files with 1 additions and 1 deletions
|
@ -204,8 +204,8 @@ void GUIChatConsole::draw()
|
||||||
// scale current console height to new window size
|
// scale current console height to new window size
|
||||||
if (m_screensize.Y != 0)
|
if (m_screensize.Y != 0)
|
||||||
m_height = m_height * screensize.Y / m_screensize.Y;
|
m_height = m_height * screensize.Y / m_screensize.Y;
|
||||||
m_desired_height = m_desired_height_fraction * m_screensize.Y;
|
|
||||||
m_screensize = screensize;
|
m_screensize = screensize;
|
||||||
|
m_desired_height = m_desired_height_fraction * m_screensize.Y;
|
||||||
reformatConsole();
|
reformatConsole();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue