Fixed a bug in Image::GetTexCoords (introduced in the few last revisions)

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1534 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
LaurentGom 2010-07-19 21:26:29 +00:00
parent c941db07a0
commit 37ea224621

View File

@ -522,10 +522,10 @@ FloatRect Image::GetTexCoords(const IntRect& rect) const
if (myPixelsFlipped)
{
return FloatRect( rect.Left / width,
(myWidth - rect.Top) / height,
rect.Width / width,
-rect.Height / height);
return FloatRect( rect.Left / width,
(myHeight - rect.Top) / height,
rect.Width / width,
-rect.Height / height);
}
else
{