summaryrefslogtreecommitdiff
path: root/new/init_windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'new/init_windows.c')
-rw-r--r--new/init_windows.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/new/init_windows.c b/new/init_windows.c
index 7ebe4e2..d0390be 100644
--- a/new/init_windows.c
+++ b/new/init_windows.c
@@ -6,6 +6,8 @@ int nCmdShow;
HFONT hMessageFont;
+HBRUSH hollowBrush;
+
struct uiInitError {
char *msg;
char failbuf[256];
@@ -97,6 +99,10 @@ const char *uiInit(uiInitOptions *o)
if (ce != NULL)
return loadLastError(ce);
+ hollowBrush = (HBRUSH) GetStockObject(HOLLOW_BRUSH);
+ if (hollowBrush == NULL)
+ return loadLastError("getting hollow brush");
+
return NULL;
}