Sfoglia il codice sorgente

fix declaration of sdfCoverageToDistance (#2193)

云风 5 anni fa
parent
commit
526db2f233
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      3rdparty/sdf/sdf.h

+ 1 - 1
3rdparty/sdf/sdf.h

@@ -113,7 +113,7 @@ static float sdf__clamp01(float x)
 	return x < 0.0f ? 0.0f : (x > 1.0f ? 1.0f : 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)
 						   const unsigned char* img, int width, int height, int stride)
 {
 {
 	int x, y;
 	int x, y;