Fixed bug in View::Reset

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1510 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2010-04-19 10:37:53 +00:00
parent fd483a9bf2
commit 7d68f59a5a

View File

@ -126,8 +126,8 @@ void View::SetViewport(const FloatRect& viewport)
////////////////////////////////////////////////////////////
void View::Reset(const FloatRect& rectangle)
{
myCenter.x = (rectangle.Left + rectangle.Width) / 2.f;
myCenter.y = (rectangle.Top + rectangle.Height) / 2.f;
myCenter.x = rectangle.Left + rectangle.Width / 2.f;
myCenter.y = rectangle.Top + rectangle.Height / 2.f;
mySize.x = rectangle.Width;
mySize.y = rectangle.Height;
myRotation = 0;