Fix line endings and typo.
This commit is contained in:
parent
77ce541e10
commit
903d28725a
|
@ -3,7 +3,7 @@
|
||||||
[sdf -> bsdf] Optimized a bit.
|
[sdf -> bsdf] Optimized a bit.
|
||||||
|
|
||||||
* src/sdf/ftbsdf.c (ED: sign => alpha): Renamed sign
|
* 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
|
pixel mapped to the source image. This let's us store
|
||||||
additional information without increasing memory usage.
|
additional information without increasing memory usage.
|
||||||
|
|
||||||
|
|
|
@ -351,11 +351,11 @@
|
||||||
worker->width, worker->rows );
|
worker->width, worker->rows );
|
||||||
ed[index].dist = FT_Vector_Length( &ed[index].near );
|
ed[index].dist = FT_Vector_Length( &ed[index].near );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ed[index].dist = 200 * ONE;
|
ed[index].dist = 200 * ONE;
|
||||||
ed[index].near.x = 100 * 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 )
|
if ( final_dist > worker->params.spread * 1024 )
|
||||||
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. */
|
/* then it's coverage value must be > 127. */
|
||||||
sign = worker->distance_map[index].alpha < 127 ? -1 : 1;
|
sign = worker->distance_map[index].alpha < 127 ? -1 : 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue