SDL_SetWindowIcon producing messed up icon
"dandago" <[email protected]> Mon, 09 Jan 2017 22:56:38 +0000
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <[email protected]> |
Hi, I've come across a weird issue with SDL_SetWindowIcon(). I am creating a surface from pixel data that I already have available, using SDL_CreateRGBSurfaceWithFormatFrom(). I know that the pixel data is correct because I'm rendering it in my game, and I know the surface I'm creating from it for the icon is valid because I tried saving it to a BMP and the image was created perfectly. But when I pass the same surface to SDL_SetWindowIcon(), I get a garbled mess. I can upload some images showing what it looks like if there's some way to do that in this forum. Has anyone had a similar issue before? ------------------------ Daniel D'Agostino http://gigi.nullneuron.net/gigilabs/ _______________________________________________ SDL mailing list [email protected] http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org