aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--melon.icobin0 -> 123533 bytes
-rw-r--r--melon.rc2
-rw-r--r--src/libui_sdl/libui/windows/window.cpp2
3 files changed, 2 insertions, 2 deletions
diff --git a/melon.ico b/melon.ico
new file mode 100644
index 0000000..3870279
--- /dev/null
+++ b/melon.ico
Binary files differ
diff --git a/melon.rc b/melon.rc
index ccf9766..9f2602f 100644
--- a/melon.rc
+++ b/melon.rc
@@ -2,7 +2,7 @@
#define VFT_APP 0x00000001L
//this will set your .exe icon
-//A ICON MOVEABLE PURE LOADONCALL DISCARDABLE "melon.ico"
+100 ICON MOVEABLE PURE LOADONCALL DISCARDABLE "melon.ico"
//include version information in .exe, modify these values to match your needs
1 VERSIONINFO
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);