Commit 52e306025611da176d20dcaa4921aae5d2cae15c

sammy 2008-04-23T09:49:07

* In outline mode, do not render the original outline if an outset value was specified: only render the modified one. Patch by Eric Beets.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/src/FTOutlineGlyph.cpp b/src/FTOutlineGlyph.cpp
index 5f8803c..bc7cf4f 100644
--- a/src/FTOutlineGlyph.cpp
+++ b/src/FTOutlineGlyph.cpp
@@ -112,14 +112,6 @@ void FTOutlineGlyph::DoRender()
         glBegin(GL_LINE_LOOP);
             for(unsigned int i = 0; i < contour->PointCount(); ++i)
             {
-                FTPoint point = contour->Point(i);
-                glVertex2f(point.X() / 64.0f, point.Y() / 64.0f);
-            }
-        glEnd();
-        /* Outset contour */
-        glBegin(GL_LINE_LOOP);
-            for(unsigned int i = 0; i < contour->FrontPointCount(); ++i)
-            {
                 FTPoint point = contour->FrontPoint(i);
                 glVertex2f(point.X() / 64.0f, point.Y() / 64.0f);
             }