diff options
Diffstat (limited to 'redo/init_windows.c')
| -rw-r--r-- | redo/init_windows.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/redo/init_windows.c b/redo/init_windows.c index 343b9d4..cc04fb7 100644 --- a/redo/init_windows.c +++ b/redo/init_windows.c @@ -14,6 +14,8 @@ HFONT smallTitleFont; HFONT menubarFont; HFONT statusbarFont; +HBRUSH hollowBrush; + DWORD initWindows(char **errmsg) { STARTUPINFOW si; @@ -61,5 +63,11 @@ DWORD initWindows(char **errmsg) GETFONT(menubarFont, lfMenuFont, "menu bar"); GETFONT(statusbarFont, lfStatusFont, "status bar"); + hollowBrush = GetStockObject(HOLLOW_BRUSH); + if (hollowBrush == NULL) { + *errmsg = "error getting hollow brush"; + return GetLastError(); + } + return 0; } |
