ilo: replace a boolean by bool
[mesa.git] / src / gallium / state_trackers / vega / arc.c
index db26e010a052c9ab57b06b65c69a5f6255ed79c4..65a985fbbbf29339436255f5b5d54eafcab95a65 100644 (file)
@@ -33,8 +33,7 @@
 #include "path.h"
 
 #include "util/u_debug.h"
-
-#include <math.h>
+#include "util/u_math.h"
 
 #ifndef M_PI
 #define M_PI 3.14159265358979323846
@@ -528,7 +527,6 @@ static INLINE int num_beziers_needed(struct arc *arc)
    double threshold = 0.05;
    VGboolean found = VG_FALSE;
    int n = 1;
-   int i;
    double min_eta, max_eta;
 
    min_eta = MIN2(arc->eta1, arc->eta2);
@@ -562,7 +560,6 @@ static void arc_to_beziers(struct arc *arc,
       sin_eta_b, a_cos_eta_b, b_sin_eta_b, a_sin_eta_b,
       b_cos_eta_b, x_b, y_b, x_b_dot, y_b_dot, lx, ly;
    double t, alpha;
-   int i;
 
    { /* always move to the start of the arc */
       VGfloat x = arc->x1;