* Allow the same thing on the emscripten version.

This commit is contained in:
iProgramInCpp
2023-08-06 22:48:09 +03:00
parent 88d68cf21e
commit 14562fc8ce

View File

@@ -161,11 +161,9 @@ static void resize()
{
SDL_GL_GetDrawableSize(window, &Minecraft::width, &Minecraft::height);
calulate_gui_scale();
if (g_pApp != nullptr && g_pApp->m_pScreen != nullptr)
if (g_pApp != nullptr)
{
g_pApp->m_pScreen->setSize(Minecraft::width * Gui::InvGuiScale, Minecraft::height * Gui::InvGuiScale);
g_pApp->sizeUpdate(Minecraft::width, Minecraft::height);
}
}