pre-C99; decrease epsilon

This commit is contained in:
yakov 2021-03-23 01:01:42 -04:00
parent d84b174fd3
commit b1947dd6cf
1 changed files with 2 additions and 3 deletions

View File

@ -4547,10 +4547,9 @@ STBTT_DEF unsigned char * stbtt_GetGlyphSDF(const stbtt_fontinfo *info, float sc
// invert for y-downwards bitmaps
scale_y = -scale_y;
// distance from singular values (in the same units as the pixel grid)
const float eps = 1./128, eps2 = eps*eps;
{
// distance from singular values (in the same units as the pixel grid)
const float eps = 1./1024, eps2 = eps*eps;
int x,y,i,j;
float *precompute;
stbtt_vertex *verts;