From 2de690f02db4114ff41142c152ed94a944aee265 Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Sun, 26 Feb 2012 13:47:19 +0100 Subject: [PATCH] Fixed right side of underline shape in sf::Text which was transparent --- src/SFML/Graphics/Text.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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