From ac1680c7a2b409811218fdae68639bbce41377d6 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sat, 7 Oct 2023 23:35:47 +0200 Subject: [PATCH] Don't show the startup window. This isn't zdoom and it isn't 1998. :) --- src/common/platform/win32/i_input.cpp | 2 +- src/common/platform/win32/i_mainwindow.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/platform/win32/i_input.cpp b/src/common/platform/win32/i_input.cpp index 05988060f..4ce8766aa 100644 --- a/src/common/platform/win32/i_input.cpp +++ b/src/common/platform/win32/i_input.cpp @@ -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 || diff --git a/src/common/platform/win32/i_mainwindow.cpp b/src/common/platform/win32/i_mainwindow.cpp index 5b246e457..81bd3894b 100644 --- a/src/common/platform/win32/i_mainwindow.cpp +++ b/src/common/platform/win32/i_mainwindow.cpp @@ -39,7 +39,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; @@ -55,7 +55,7 @@ void MainWindow::Create(const FString& caption, int x, int y, int width, int hei WS_EX_APPWINDOW, WinClassName, wcaption.c_str(), - WS_OVERLAPPEDWINDOW | WS_VISIBLE | WS_CLIPCHILDREN, + WS_OVERLAPPEDWINDOW/* | WS_VISIBLE*/ | WS_CLIPCHILDREN, x, y, width, height, (HWND)NULL, (HMENU)NULL,