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