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:
parent
54e70a47f0
commit
6d717f3c87
3 changed files with 13 additions and 36 deletions
|
@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue