From 37ea2246212e902ed6aaa8719b7cfadd2b99e453 Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Mon, 19 Jul 2010 21:26:29 +0000 Subject: [PATCH] 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 --- src/SFML/Graphics/Image.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SFML/Graphics/Image.cpp b/src/SFML/Graphics/Image.cpp index e0b4f735e..d073271db 100644 --- a/src/SFML/Graphics/Image.cpp +++ b/src/SFML/Graphics/Image.cpp @@ -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 {