diff --git a/src/SFML/Graphics/Image.cpp b/src/SFML/Graphics/Image.cpp index 229fa9c36..e0b4f735e 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, - (rect.Top + rect.Height) / height, - rect.Width / width, - -rect.Height / height); + return FloatRect( rect.Left / width, + (myWidth - rect.Top) / height, + rect.Width / width, + -rect.Height / height); } else {