Przeglądaj źródła

fix declaration of sdfCoverageToDistance (#2193)

云风 5 lat temu
rodzic
commit
526db2f233
1 zmienionych plików z 1 dodań i 1 usunięć
  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);
 }
 
-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;