1
General / Re: Shape deformed after resizing the window
« on: April 01, 2013, 05:14:09 pm »
Thanks. It works. I've used the following code:
I will look into the View class. However, I cannot understand why it is required. I guess that the normal situation should be that the whole window corresponds to a view unless it is modified by the developer.
if (event.type == sf::Event::Resized) {
window.setView(sf::View(sf::FloatRect(0, 0, event.size.width, event.size.height)));
}
window.setView(sf::View(sf::FloatRect(0, 0, event.size.width, event.size.height)));
}
I will look into the View class. However, I cannot understand why it is required. I guess that the normal situation should be that the whole window corresponds to a view unless it is modified by the developer.