freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] anuj-distance-field dffc198 90/95: Fix line endings and typo


From: Anuj Verma
Subject: [freetype2] anuj-distance-field dffc198 90/95: Fix line endings and typo.
Date: Sun, 2 Aug 2020 01:10:43 -0400 (EDT)

branch: anuj-distance-field
commit dffc1984c466746eb216ff7b41f70de5d9cc3317
Author: Anuj Verma <anujv@iitbhilai.ac.in>
Commit: Anuj Verma <anujv@iitbhilai.ac.in>

    Fix line endings and typo.
---
 [GSoC]ChangeLog  | 2 +-
 src/sdf/ftbsdf.c | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/[GSoC]ChangeLog b/[GSoC]ChangeLog
index 464e146..2e77c56 100644
--- a/[GSoC]ChangeLog
+++ b/[GSoC]ChangeLog
@@ -3,7 +3,7 @@
        [sdf -> bsdf] Optimized a bit.
 
        * src/sdf/ftbsdf.c (ED: sign => alpha): Renamed sign
-         to alphs. This is used to store the alpha of the current
+         to alphas. This is used to store the alpha of the current
          pixel mapped to the source image. This let's us store
          additional information without increasing memory usage.
 
diff --git a/src/sdf/ftbsdf.c b/src/sdf/ftbsdf.c
index 858d538..dd05052 100644
--- a/src/sdf/ftbsdf.c
+++ b/src/sdf/ftbsdf.c
@@ -351,11 +351,11 @@
                              worker->width, worker->rows );
           ed[index].dist = FT_Vector_Length( &ed[index].near );
         }
-        else
-        {
+        else
+        {
           ed[index].dist   = 200 * ONE;
           ed[index].near.x = 100 * ONE;
-          ed[index].near.y = 100 * ONE;
+          ed[index].near.y = 100 * ONE;
         }
       }
     }
@@ -809,7 +809,7 @@
         if ( final_dist > worker->params.spread * 1024 )
           final_dist = worker->params.spread * 1024;
 
-        /* We assume that if the pixel is inside a contour */
+        /* We assume that if the pixel is inside a contour */
         /* then it's coverage value must be > 127.         */
         sign = worker->distance_map[index].alpha < 127 ? -1 : 1;
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]