mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 19:42:00 +00:00
Win32: Prevent white window background during initialization
This commit is contained in:
parent
57cbded076
commit
655c019340
@ -1122,11 +1122,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:
|
||||||
{
|
{
|
||||||
@ -1265,6 +1260,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
|
||||||
|
Loading…
Reference in New Issue
Block a user