1
Window / [SFML2] Event Resized
« on: June 25, 2011, 05:02:53 pm »
ok, works now:
My C++ is a bit rusty and i forgot the breaks
Gave a funny effect.
I guess SetSize should be used when changing the resolution with a game menu.
Code: [Select]
case sf::Event::Resized:
App.SetView(sf::View(sf::FloatRect(0, 0, Event.Size.Width,Event.Size.Height)));
break;
My C++ is a bit rusty and i forgot the breaks
Gave a funny effect.
I guess SetSize should be used when changing the resolution with a game menu.