Noise: Prevent unittest crash caused by division by zero
[oweals/minetest.git] / src / guiChatConsole.cpp
index ecd280f5e406bb7deda765f26da161b963605bee..0dbddf31cd530b097d4bbd85d7ebbca58ab8347b 100644 (file)
@@ -32,7 +32,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include <string>
 
 #if USE_FREETYPE
-       #include "xCGUITTFont.h"
+       #include "irrlicht_changes/CGUITTFont.h"
 #endif
 
 inline u32 clamp_u8(s32 value)
@@ -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();
        }