Removed stdio include and used arg in deCasteljau function declaration
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
diff --git a/src/FTVectorGlyph.cpp b/src/FTVectorGlyph.cpp
index a78c19b..cfc7896 100755
--- a/src/FTVectorGlyph.cpp
+++ b/src/FTVectorGlyph.cpp
@@ -1,5 +1,3 @@
-#include <stdio.h>
-
#include "gl.h"
#include "FTVectorGlyph.h"
@@ -29,7 +27,7 @@ void FTContour::AddPoint( int x, int y)
//2.De Casteljau algorithm
-void FTVectoriser::deCasteljau(GLint m, GLfloat t, int n, GLfloat bValues[MAX_DEG][MAX_DEG][2])
+void FTVectoriser::deCasteljau( GLfloat t, int n, GLfloat bValues[MAX_DEG][MAX_DEG][2])
{
int i, k, l;
@@ -62,7 +60,7 @@ void FTVectoriser::evaluateCurve( int n)
for (m = 0; m <= (1 / stepSize); m++)
{
t = m * stepSize;
- deCasteljau(m, t, n, bValues); //calls to evaluate point on curve att.
+ deCasteljau( t, n, bValues); //calls to evaluate point on curve att.
} //end for(m...)
}
diff --git a/src/FTVectorGlyph.h b/src/FTVectorGlyph.h
index 6880b4a..7dd080d 100755
--- a/src/FTVectorGlyph.h
+++ b/src/FTVectorGlyph.h
@@ -53,7 +53,7 @@ class FTVectoriser
// methods
int Conic( int index, int first, int last);
int Cubic( int index, int first, int last);
- void deCasteljau(GLint m, GLfloat t, int n, GLfloat bValues[MAX_DEG][MAX_DEG][2]);
+ void deCasteljau( GLfloat t, int n, GLfloat bValues[MAX_DEG][MAX_DEG][2]);
void evaluateCurve( int n);
// attributes