Skip to content

Commit

Permalink
pass 0 for window style when creating a dummy window
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Aug 14, 2024
1 parent fd44db3 commit ba9a65f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RGFW.h
Original file line number Diff line number Diff line change
Expand Up @@ -5305,7 +5305,7 @@ RGFW_UNUSED(win); /*!< if buffer rendering is not being used */
} else
window_style |= WS_POPUP | WS_VISIBLE | WS_SYSMENU | WS_MINIMIZEBOX;

HWND dummyWin = CreateWindowA(Class.lpszClassName, name, window_style, win->r.x, win->r.y, win->r.w, win->r.h, 0, 0, inh, 0);
HWND dummyWin = CreateWindowA(Class.lpszClassName, name, 0, win->r.x, win->r.y, win->r.w, win->r.h, 0, 0, inh, 0);

GetWindowRect(dummyWin, &windowRect);
GetClientRect(dummyWin, &clientRect);
Expand Down

0 comments on commit ba9a65f

Please sign in to comment.