From a97f4d78ede7391c6bc54d17453b5250cc54bec9 Mon Sep 17 00:00:00 2001 From: Fayaz Shaikh <61674751+fayaz12g@users.noreply.github.com> Date: Mon, 2 Mar 2026 21:49:47 -0500 Subject: [PATCH] Remove WM_SIZE argument (unecessary now that we directly use g_iScreenWidth and g_iScreenHeight) --- Minecraft.Client/Windows64/Windows64_Minecraft.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp index 290835647..48040c664 100644 --- a/Minecraft.Client/Windows64/Windows64_Minecraft.cpp +++ b/Minecraft.Client/Windows64/Windows64_Minecraft.cpp @@ -431,14 +431,6 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) return TRUE; } return DefWindowProc(hWnd, message, wParam, lParam); - case WM_SIZE: - { - // Set the screen width and height used for calculating the aspect ratio - g_iScreenWidth = LOWORD(lParam); - g_iScreenHeight = HIWORD(lParam); - app.DebugPrintf("width: %d, height: %d\n", g_iScreenWidth, g_iScreenHeight); - } - break; default: return DefWindowProc(hWnd, message, wParam, lParam); }