Fixed borderless window client area calculation

main
Sam Lantinga 2024-01-11 13:49:28 -08:00
parent cf0d1d7234
commit 483155bbf9
1 changed files with 2 additions and 2 deletions

View File

@ -1424,8 +1424,8 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
if (!(window_flags & SDL_WINDOW_RESIZABLE)) {
int w, h;
NCCALCSIZE_PARAMS *params = (NCCALCSIZE_PARAMS *)lParam;
w = data->window->windowed.w;
h = data->window->windowed.h;
w = data->window->floating.w;
h = data->window->floating.h;
params->rgrc[0].right = params->rgrc[0].left + w;
params->rgrc[0].bottom = params->rgrc[0].top + h;
}