Compare commits

...

2 Commits

Author SHA1 Message Date
Alex Hirsch
b2ef54252f
Merge 655c019340 into 936307558e 2025-11-11 14:17:32 +01:00
Alex Hirsch
655c019340 Win32: Prevent white window background during initialization 2023-01-25 16:23:57 +01:00

View File

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