aboutsummaryrefslogtreecommitdiff
path: root/src/libui_sdl
diff options
context:
space:
mode:
authorStapleButter <thetotalworm@gmail.com>2017-12-16 04:10:32 +0100
committerStapleButter <thetotalworm@gmail.com>2017-12-16 04:10:32 +0100
commitca41ce6efd7a68b1a9b4f98e2787609518c6fb5b (patch)
tree3941c28f1897c3c80caf71619c5942f82290f25f /src/libui_sdl
parentfff4ca0c9580c228c8b17ef87518d1806e3a4909 (diff)
windows: add icon
Diffstat (limited to 'src/libui_sdl')
-rw-r--r--src/libui_sdl/libui/windows/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libui_sdl/libui/windows/window.cpp b/src/libui_sdl/libui/windows/window.cpp
index 50a01c6..e2127cb 100644
--- a/src/libui_sdl/libui/windows/window.cpp
+++ b/src/libui_sdl/libui/windows/window.cpp
@@ -167,7 +167,7 @@ ATOM registerWindowClass(HICON hDefaultIcon, HCURSOR hDefaultCursor)
wc.lpszClassName = windowClass;
wc.lpfnWndProc = windowWndProc;
wc.hInstance = hInstance;
- wc.hIcon = hDefaultIcon;
+ wc.hIcon = LoadIcon(GetModuleHandle(NULL), MAKEINTRESOURCE(100));
wc.hCursor = hDefaultCursor;
wc.hbrBackground = (HBRUSH) (COLOR_BTNFACE + 1);
return RegisterClassW(&wc);