Modified sf::RenderTarget so that it handles views by value rather than by reference

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1315 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2009-12-31 16:43:24 +00:00
parent 54e70a47f0
commit 6d717f3c87
3 changed files with 13 additions and 36 deletions

View file

@ -60,7 +60,7 @@ private :
// Adjust the size of the default view when the widget is resized
if (event.Type == sf::Event::Resized)
{
GetDefaultView().Reset(sf::FloatRect(0, 0, event.Size.Width, event.Size.Height));
SetView(sf::View(sf::FloatRect(0, 0, event.Size.Width, event.Size.Height)));
}
}