forked from minhngoc25a/freetype2
* src/sdf/ftbsdf.c (compare_neighbor): Fix bug.
This commit is contained in:
parent
903d28725a
commit
436f091db1
|
@ -1,3 +1,7 @@
|
||||||
|
2020-08-1 Anuj Verma <anujv@iitbhilai.ac.in>
|
||||||
|
|
||||||
|
* src/sdf/ftbsdf.c (compare_neighbor): Fix bug.
|
||||||
|
|
||||||
2020-08-1 Anuj Verma <anujv@iitbhilai.ac.in>
|
2020-08-1 Anuj Verma <anujv@iitbhilai.ac.in>
|
||||||
|
|
||||||
[sdf -> bsdf] Optimized a bit.
|
[sdf -> bsdf] Optimized a bit.
|
||||||
|
|
|
@ -214,9 +214,6 @@
|
||||||
FT_16D16 alphas[9];
|
FT_16D16 alphas[9];
|
||||||
|
|
||||||
|
|
||||||
if ( x == 41 && y == 72 )
|
|
||||||
gx = 0;
|
|
||||||
|
|
||||||
/* Since our spread cannot be 0, this condition */
|
/* Since our spread cannot be 0, this condition */
|
||||||
/* can never be true. */
|
/* can never be true. */
|
||||||
if ( x <= 0 || x >= w - 1 ||
|
if ( x <= 0 || x >= w - 1 ||
|
||||||
|
@ -547,9 +544,10 @@
|
||||||
/* Of course this will be eliminated while using */
|
/* Of course this will be eliminated while using */
|
||||||
/* squared distances. */
|
/* squared distances. */
|
||||||
|
|
||||||
/* Approximate the distance, use 1 to avoid */
|
/* Approximate the distance, use 1 to avoid */
|
||||||
/* precision errors. */
|
/* precision errors. We subtract because the */
|
||||||
dist = to_check->dist + ONE;
|
/* two directions can be opposite. */
|
||||||
|
dist = to_check->dist - ONE;
|
||||||
|
|
||||||
if ( dist < current->dist )
|
if ( dist < current->dist )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue