46
Graphics / Changing Image of a Sprite do not work
« on: April 06, 2009, 08:15:28 pm »
If I have a Sprite with an Image and I change the Image by
the Image is cut at the left and down side if it is bigger than the old one.
A workaround is
but I think that is inefficient.
Is that a bug or a feature that the size of the new image is not assumed?
Code: [Select]
Sprite.SetImage(Img);
the Image is cut at the left and down side if it is bigger than the old one.
A workaround is
Code: [Select]
Sprite = sf::Sprite(Img);
but I think that is inefficient.
Is that a bug or a feature that the size of the new image is not assumed?