SFML community forums
Help => Graphics => Topic started by: Ashenwraith on June 25, 2010, 11:09:21 am
-
I tried this but it doesn't work: sf::Vector2f HalfSize(App.GetWidth()*.5f,App.GetHeight()*.5f);
-
it doesn't work
???
Please give more details. I don't even know what you're trying to do with this piece of code.
-
I'm trying to get all of the sprites to be at their 100% default size but there seems to be ratio/size problems.
sf::Vector2f Center(1000,1000);
sf::Vector2f HalfSize(App.GetWidth()*.5f,App.GetHeight()*.5f); //516/387
sf::View View(Center,HalfSize);
I'm guessing there is a 100% default setting?
I saw GetDefaultView() but it doesn't seem to do it
I also tried this and it doesn't work either:
sf::View View(sf::FloatRect(0.f,0.f,App.GetWidth(),App.GetHeight()));
-
I've done that many times, it's supposed to work.
Can you provide a minimal and complete example that reproduces this problem?
-
Nevermind, it works perfect.
I was using the magic wand to test from screenshots and I forgot to turn anti-alias off even though the dotted selection looked right.
That's strange. I think photoshop CS 5 maybe does that differently. I don't remember it antialiasing solid colors when tolerance was 1 in previous versions.
Actually looking at it again this appears to be a bug in CS 5. When you paste the selection it has no anti-aliasing but it adds extra space to it. Wow, Adobe is really slipping--this might screw up a lot of people's older scripts.