From: Bart House Date: Mon, 9 Oct 2017 00:32:58 +0000 (-0700) Subject: Win32GUI: Set main window background brush to black. X-Git-Tag: NetHack-3.6.1_RC01~298 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b1f7bd37910a0f8392eaf39d42814356af6d4b0f;p=nethack Win32GUI: Set main window background brush to black. Black is a better choice given that the map background will always be black. This also creates a better polished experience when all window backgrounds are set to black. --- diff --git a/win/win32/mhmain.c b/win/win32/mhmain.c index 48c2ea3a6..f64ab7665 100644 --- a/win/win32/mhmain.c +++ b/win/win32/mhmain.c @@ -104,7 +104,7 @@ register_main_window_class() wcex.hInstance = GetNHApp()->hApp; wcex.hIcon = LoadIcon(GetNHApp()->hApp, (LPCTSTR) IDI_NETHACKW); wcex.hCursor = LoadCursor(NULL, IDC_ARROW); - wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1); + wcex.hbrBackground = CreateSolidBrush(RGB(0, 0, 0)); wcex.lpszMenuName = (TCHAR *) IDC_NETHACKW; wcex.lpszClassName = szMainWindowClass;