[sdf] Bug fix.

* src/sdf/ftsdf.c (sdf_generate_with_overlaps): The
  outside sign will always be 1. And added a missing
  `else'.
This commit is contained in:
Anuj Verma 2020-08-13 09:05:50 +05:30
parent 398cae8398
commit e0a2a76b09
2 changed files with 10 additions and 2 deletions

View File

@ -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.

View File

@ -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