The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
SDL2 hide "window icon"
samleo


Joined: 04 Mar 2014
Posts: 37
Location: Brazil
I would like to know: how can I hide the "icon" from panel on sdl2?
SDL2 hide "window icon"
Jeffrey Carpenter
Guest

Heyya,

After a few minutes of playing around with off-the-top ideas, I must ask: why must you explicitly hide the icon? Why not just exclude making the call to SDL_SetWindowIcon if hiding the icon is the intended behavior?

My only other idea / suggestion for effectively hiding the icon (untested), assuming you are using PNG for the icon file, would be to create a duplicate icon (i.e.: same size dimensions), except in this file, you'd want 100% transparency (alpha) set, so that it would appear as though there was no window icon, and could easily be toggled to the other game icon if/when necessary.

Cheers,
Jeffrey Carpenter


On 2014/10/ 27, at 18:14, samleo wrote:

Quote:
I would like to know: how can I hide the "icon" from panel on sdl2?



My project
http://sourceforge.net/projects/dangeroustux/
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org