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:
parent
c941db07a0
commit
37ea224621
@ -523,7 +523,7 @@ FloatRect Image::GetTexCoords(const IntRect& rect) const
|
||||
if (myPixelsFlipped)
|
||||
{
|
||||
return FloatRect( rect.Left / width,
|
||||
(myWidth - rect.Top) / height,
|
||||
(myHeight - rect.Top) / height,
|
||||
rect.Width / width,
|
||||
-rect.Height / height);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user