ui/win32/window.c

changeset 816
f5690594b240
parent 815
7ddf5fb7ec2a
child 818
8185cd761897
--- a/ui/win32/window.c	Wed Oct 08 12:36:16 2025 +0200
+++ b/ui/win32/window.c	Wed Oct 08 15:42:23 2025 +0200
@@ -75,7 +75,7 @@
     wc.hInstance = hInstance;
     wc.lpszClassName = mainWindowClass;
     wc.hCursor = LoadCursor(NULL, IDC_ARROW);
-    wc.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
+    wc.hbrBackground = GetSysColorBrush(COLOR_BTNFACE);
 
     if(!RegisterClassExA(&wc)) {
         MessageBox(NULL, "RegisterClassEx failed", "Error", MB_ICONERROR);
@@ -86,7 +86,7 @@
 static UiObject* create_window(const char *title, void *window_data, bool simple) {
     UiObject *obj = uic_object_new_toplevel();
     obj->window = window_data;
-	
+
 	HWND hwnd = CreateWindowExA(
 			0,
 			"UiMainWindow",

mercurial