From df2925a4ede5e86e39d9589f1fb8755c63e6263c Mon Sep 17 00:00:00 2001 From: void_17 Date: Mon, 2 Mar 2026 13:32:41 +0700 Subject: [PATCH] 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. --- Minecraft.Client/Windows64/Windows64_Minecraft.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp index 540c3c53..a6fdd7f2 100644 --- a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp +++ b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp @@ -716,6 +716,7 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance, UNREFERENCED_PARAMETER(hPrevInstance); UNREFERENCED_PARAMETER(lpCmdLine); + /* // Declare DPI awareness so GetSystemMetrics returns physical pixels SetProcessDPIAware(); 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); OutputDebugStringA(buf); } + */ + if(lpCmdLine) { @@ -1220,7 +1223,7 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance, ToggleFullscreen(); } - // TAB opens host options menu. - Vvis :3 + // TAB opens host options menu. - Vvis :3 if (KMInput.IsKeyPressed(VK_TAB)) { if (Minecraft* pMinecraft = Minecraft::GetInstance())