Fix Iggy player crashes on systems with DPI changed

The code that was supposed to make the game DPI-aware was broken. I remove it until a proper implementation.
This commit is contained in:
void_17
2026-03-02 13:32:41 +07:00
parent 3680090ff9
commit df2925a4ed

View File

@@ -716,6 +716,7 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
UNREFERENCED_PARAMETER(hPrevInstance); UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine); UNREFERENCED_PARAMETER(lpCmdLine);
/*
// Declare DPI awareness so GetSystemMetrics returns physical pixels // Declare DPI awareness so GetSystemMetrics returns physical pixels
SetProcessDPIAware(); SetProcessDPIAware();
g_iScreenWidth = GetSystemMetrics(SM_CXSCREEN); g_iScreenWidth = GetSystemMetrics(SM_CXSCREEN);
@@ -726,6 +727,8 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
sprintf(buf, "Screen resolution: %dx%d\n", g_iScreenWidth, g_iScreenHeight); sprintf(buf, "Screen resolution: %dx%d\n", g_iScreenWidth, g_iScreenHeight);
OutputDebugStringA(buf); OutputDebugStringA(buf);
} }
*/
if(lpCmdLine) if(lpCmdLine)
{ {
@@ -1220,7 +1223,7 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
ToggleFullscreen(); ToggleFullscreen();
} }
// TAB opens host options menu. - Vvis :3 // TAB opens host options menu. - Vvis :3
if (KMInput.IsKeyPressed(VK_TAB)) if (KMInput.IsKeyPressed(VK_TAB))
{ {
if (Minecraft* pMinecraft = Minecraft::GetInstance()) if (Minecraft* pMinecraft = Minecraft::GetInstance())