SFML community forums
Help => Graphics => Topic started by: haren on September 21, 2010, 10:52:27 pm
-
Hello there. I'm having an issue with views and sprites.
(http://imgur.com/L5yar.png)
As you can see from the picture, strange lines and boxes form around the sprites and flicker as I zoom in or out. I am using SFML svn, by the way. The issue goes away if I add an empty 1 pixel border around each sprite, but before I go ahead and do that for everything, I'd like to know if there is another solution. I have tried disabling smoothing on the image.
-
The empty pixel border is the best solution for that. ;)
-
Hello,
Did you try to use Image.SetSmooth(false) ?
-
Mindielle: indeed I did
Thanks for the advice. I feel like if I'm not the only one with this problem, there should be a note in the docs.
-
Are you using SFML 1 or SFML 2?
-
downloaded the source from svn about a week ago. So I guess it would be 2.
-
The SVN repository contains both versions:
- branches/sfml2 is SFML 2
- trunk is SFML 1
-
I just checked, and it's 2.