]> granicus.if.org Git - nethack/commitdiff
Win32GUI: Set main window background brush to black.
authorBart House <bart@barthouse.com>
Mon, 9 Oct 2017 00:32:58 +0000 (17:32 -0700)
committerPasi Kallinen <paxed@alt.org>
Mon, 9 Oct 2017 11:56:46 +0000 (14:56 +0300)
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.

win/win32/mhmain.c

index 48c2ea3a69ab2273269fdfdd310be110faa7ecc7..f64ab76650bdda7e70e3a95bf2e903d9a5949eaa 100644 (file)
@@ -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;