| Summary: | Hint to set resource id for window icon | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Alexey <alexey.petruchik> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | enhancement | ||
| Priority: | P2 | CC: | ntzrmtthihu777 |
| Version: | 2.0.3 | ||
| Hardware: | x86 | ||
| OS: | Windows (All) | ||
| Attachments: | patch | ||
I too wish for something of the sort, and apparently so do n amount of stackoverflow and github gisters. We need a standard way to do this for the windows platform. I added two hints, one for the large and one for the small icon: SDL_HINT_WINDOWS_INTRESOURCE_ICON SDL_HINT_WINDOWS_INTRESOURCE_ICON_SMALL https://hg.libsdl.org/SDL/rev/2d458a198021 Thanks! |
Created attachment 1989 [details] patch Seems to be a missing functionality. I want to set an icon from RC file. I cant pass MAKEINTRESOURCE(X) string to SDL_RegisterApp() cause string returned by MAKEINTRESOURCE string is not actually a string and SDL_strlen will crash. Moreover LoadImage seems to be loading wrong icon size. LoadIcon seems to be fine.