diff --git a/src/SFML/Graphics/Text.cpp b/src/SFML/Graphics/Text.cpp index ea6a3f916..ce78c024b 100644 --- a/src/SFML/Graphics/Text.cpp +++ b/src/SFML/Graphics/Text.cpp @@ -263,9 +263,9 @@ void Text::UpdateGeometry() float bottom = top + underlineThickness; myVertices.Append(Vertex(Vector2f(0, top), myColor, Vector2f(1, 1))); - myVertices.Append(Vertex(Vector2f(x, top), myColor, Vector2f(2, 1))); - myVertices.Append(Vertex(Vector2f(x, bottom), myColor, Vector2f(2, 2))); - myVertices.Append(Vertex(Vector2f(0, bottom), myColor, Vector2f(1, 2))); + myVertices.Append(Vertex(Vector2f(x, top), myColor, Vector2f(1, 1))); + myVertices.Append(Vertex(Vector2f(x, bottom), myColor, Vector2f(1, 1))); + myVertices.Append(Vertex(Vector2f(0, bottom), myColor, Vector2f(1, 1))); } // Handle special characters @@ -307,9 +307,9 @@ void Text::UpdateGeometry() float bottom = top + underlineThickness; myVertices.Append(Vertex(Vector2f(0, top), myColor, Vector2f(1, 1))); - myVertices.Append(Vertex(Vector2f(x, top), myColor, Vector2f(2, 1))); - myVertices.Append(Vertex(Vector2f(x, bottom), myColor, Vector2f(2, 2))); - myVertices.Append(Vertex(Vector2f(0, bottom), myColor, Vector2f(1, 2))); + myVertices.Append(Vertex(Vector2f(x, top), myColor, Vector2f(1, 1))); + myVertices.Append(Vertex(Vector2f(x, bottom), myColor, Vector2f(1, 1))); + myVertices.Append(Vertex(Vector2f(0, bottom), myColor, Vector2f(1, 1))); } // Recompute the bounding rectangle