Remove WM_SIZE argument (unecessary now that we directly use g_iScreenWidth and g_iScreenHeight)

This commit is contained in:
Fayaz Shaikh 2026-03-02 21:49:47 -05:00
parent 7f2b7830a9
commit a97f4d78ed

View file

@ -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);
}