SFML community forums

Bindings - other languages => C => Topic started by: TricksterGuy on January 16, 2009, 11:24:05 pm

Title: Possible bug with sprites and images?
Post by: TricksterGuy on January 16, 2009, 11:24:05 pm
I was testing out drawing sprites and I noticed if I call sfSprite_SetImage and pass NULL, then the sprites image is unchanged. was this intentional?
Title: Possible bug with sprites and images?
Post by: Laurent on January 16, 2009, 11:33:17 pm
Yes, and you even get an error message. Passing a NULL image is not allowed.
Title: Possible bug with sprites and images?
Post by: TricksterGuy on January 16, 2009, 11:59:09 pm
I didn't get an error message, just nothing happened. haha

Ok now that I know, I can work around this :P I was expecting that with a null image as its image when you then call sfRenderWindow_DrawSprite(sprite) then the sprite just wouldn't draw.


Thanks
Title: Possible bug with sprites and images?
Post by: Laurent on January 17, 2009, 10:09:18 am
Quote
I didn't get an error message

The messages are sent to stderr, you can redirect it to a file or show the console to see them.