Compare commits

...

2 Commits

Author SHA1 Message Date
Alex Hirsch
45ce9bd454
Merge 655c019340 into e7ea71be03 2025-01-19 07:30:50 +00:00
Alex Hirsch
655c019340 Win32: Prevent white window background during initialization 2023-01-25 16:23:57 +01:00

View File

@ -1146,11 +1146,6 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM l
break;
}
case WM_ERASEBKGND:
{
return TRUE;
}
case WM_NCACTIVATE:
case WM_NCPAINT:
{
@ -1289,6 +1284,7 @@ static int createNativeWindow(_GLFWwindow* window,
wc.lpfnWndProc = windowProc;
wc.hInstance = _glfw.win32.instance;
wc.hCursor = LoadCursorW(NULL, IDC_ARROW);
wc.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH);
#if defined(_GLFW_WNDCLASSNAME)
wc.lpszClassName = _GLFW_WNDCLASSNAME;
#else