dandago
2017-01-09 22:56:38 UTC
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/
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/