From ba9a65f3c42a193cc418eac564a170ad1363de9c Mon Sep 17 00:00:00 2001 From: ColleagueRiley Date: Wed, 14 Aug 2024 12:50:04 -0400 Subject: [PATCH] pass 0 for window style when creating a dummy window --- RGFW.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RGFW.h b/RGFW.h index 4c8e4a1..efd2249 100644 --- a/RGFW.h +++ b/RGFW.h @@ -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);