* Slight refactor to the resize code.

This commit is contained in:
iProgramInCpp
2023-08-17 11:37:33 +03:00
parent f14730d3f3
commit a08478d527
5 changed files with 52 additions and 55 deletions

View File

@@ -155,6 +155,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
Minecraft::width = width;
Minecraft::height = height;
Minecraft::setGuiScaleMultiplier(1.0f); // assume no meddling with the DPI stuff
g_AppPlatform.setScreenSize(width, height);
@@ -264,6 +265,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLin
// initialize the app
g_pApp->init();
g_pApp->sizeUpdate(Minecraft::width, Minecraft::height);
while (!g_pApp->wantToQuit())
{