fix declaration of sdfCoverageToDistance (#2193)

This commit is contained in:
云风 2020-07-04 04:00:49 +08:00 committed by GitHub
parent 7efb218fd1
commit 526db2f233
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
3rdparty/sdf/sdf.h vendored
View File

@ -113,7 +113,7 @@ static float sdf__clamp01(float x)
return x < 0.0f ? 0.0f : (x > 1.0f ? 1.0f : x);
}
void sdfCoverageToDistance(unsigned char* out, int outstride,
void sdfCoverageToDistance(unsigned char* out, int outstride, float maxdist,
const unsigned char* img, int width, int height, int stride)
{
int x, y;