diff --git a/src/SFML/Graphics/Image.cpp b/src/SFML/Graphics/Image.cpp index e0b4f735..d073271d 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 {