Change icon resource IDs
Visual Studio 2017 doesn't like them being 0 and 1: the compiled EXE uses the small icon as the taskbar icon. Changing them to 101 and 102, like CSE2 did before the accurate-portable-split, fixes this.
This commit is contained in:
parent
f127010848
commit
bd876e9309
2 changed files with 4 additions and 4 deletions
|
@ -66,8 +66,8 @@ END
|
|||
|
||||
// Icon with lowest ID value placed first to ensure application icon
|
||||
// remains consistent on all systems.
|
||||
0 ICON "ICON/0.ico"
|
||||
1 ICON "ICON/ICON_MINI.ico"
|
||||
101 ICON "ICON/0.ico"
|
||||
102 ICON "ICON/ICON_MINI.ico"
|
||||
#endif // Japanese resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
|
|
@ -194,8 +194,8 @@ int main(int argc, char *argv[])
|
|||
RECT unused_rect = {0, 0, WINDOW_WIDTH, WINDOW_HEIGHT};
|
||||
|
||||
#ifdef _WIN32 // On Windows, we use native icons instead (so we can give the taskbar and window separate icons, like the original EXE does)
|
||||
SDL_SetHint(SDL_HINT_WINDOWS_INTRESOURCE_ICON, "0");
|
||||
SDL_SetHint(SDL_HINT_WINDOWS_INTRESOURCE_ICON_SMALL, "1");
|
||||
SDL_SetHint(SDL_HINT_WINDOWS_INTRESOURCE_ICON, "101");
|
||||
SDL_SetHint(SDL_HINT_WINDOWS_INTRESOURCE_ICON_SMALL, "102");
|
||||
#endif
|
||||
|
||||
SDL_InitSubSystem(SDL_INIT_VIDEO);
|
||||
|
|
Loading…
Add table
Reference in a new issue