eliminated the small white part of the initial window content after the IWAD picker.

This commit is contained in:
Christoph Oelckers 2024-01-04 22:21:27 +01:00
commit c62ecc44e2
4 changed files with 15 additions and 15 deletions

View file

@ -491,7 +491,7 @@ LRESULT CALLBACK WndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
break;
case WM_ERASEBKGND:
return true;
return DefWindowProc(hWnd, message, wParam, lParam);
case WM_DEVICECHANGE:
if (wParam == DBT_DEVNODES_CHANGED ||

View file

@ -36,7 +36,7 @@ void MainWindow::Create(const FString& caption, int x, int y, int width, int hei
WndClass.hInstance = hInstance;
WndClass.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON1));
WndClass.hCursor = LoadCursor(NULL, IDC_ARROW);
WndClass.hbrBackground = NULL;
WndClass.hbrBackground = CreateSolidBrush(RGB(0,0,0));
WndClass.lpszMenuName = NULL;
WndClass.lpszClassName = WinClassName;