forked from Mirrorlandia_minetest/minetest
Fix console not being properly resized after window size changed (#6020)
This commit is contained in:
parent
322e5aaf92
commit
cfa6216694
@ -231,6 +231,7 @@ void GUIChatConsole::reformatConsole()
|
|||||||
s32 rows = m_desired_height / m_fontsize.Y - 1; // make room for the input prompt
|
s32 rows = m_desired_height / m_fontsize.Y - 1; // make room for the input prompt
|
||||||
if (cols <= 0 || rows <= 0)
|
if (cols <= 0 || rows <= 0)
|
||||||
cols = rows = 0;
|
cols = rows = 0;
|
||||||
|
recalculateConsolePosition();
|
||||||
m_chat_backend->reformat(cols, rows);
|
m_chat_backend->reformat(cols, rows);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user