Skip to content

Commit

Permalink
windows: add icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Arisotura committed Dec 16, 2017
1 parent fff4ca0 commit ca41ce6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file added melon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion melon.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/libui_sdl/libui/windows/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ca41ce6

Please sign in to comment.