freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] anuj-distance-field e0a2a76: [sdf] Bug fix.


From: Anuj Verma
Subject: [freetype2] anuj-distance-field e0a2a76: [sdf] Bug fix.
Date: Thu, 13 Aug 2020 06:30:14 -0400 (EDT)

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

    [sdf] Bug fix.
    
    * src/sdf/ftsdf.c (sdf_generate_with_overlaps): The
      outside sign will always be 1. And added a missing
      `else'.
---
 [GSoC]ChangeLog | 8 ++++++++
 src/sdf/ftsdf.c | 4 ++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/[GSoC]ChangeLog b/[GSoC]ChangeLog
index bb217fc..5264adb 100644
--- a/[GSoC]ChangeLog
+++ b/[GSoC]ChangeLog
@@ -1,3 +1,11 @@
+2020-08-13  Anuj Verma  <anujv@iitbhilai.ac.in>
+
+       [sdf] Bug fix.
+
+       * src/sdf/ftsdf.c (sdf_generate_with_overlaps): The
+         outside sign will always be 1. And added a missing
+         `else'.
+
 2020-08-12  Anuj Verma  <anujv@iitbhilai.ac.in>
 
        [base] Fix memory leaks due to FreeType internals.
diff --git a/src/sdf/ftsdf.c b/src/sdf/ftsdf.c
index 5a6ad70..6d77493 100644
--- a/src/sdf/ftsdf.c
+++ b/src/sdf/ftsdf.c
@@ -3285,8 +3285,8 @@
       /* wise contours.                               */
       if ( orientations[i] == SDF_ORIENTATION_ACW &&
            internal_params.orientation == FT_ORIENTATION_FILL_RIGHT )
-        internal_params.overload_sign = -1;
-      if ( orientations[i] == SDF_ORIENTATION_CW &&
+        internal_params.overload_sign = 1;
+      else if ( orientations[i] == SDF_ORIENTATION_CW &&
            internal_params.orientation == FT_ORIENTATION_FILL_LEFT )
         internal_params.overload_sign = 1;
       else



reply via email to

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