[cairo-commit] cairo/src cairo-path-stroke.c,1.26,1.27
Carl Worth
commit at pdx.freedesktop.org
Fri Sep 16 10:49:51 PDT 2005
Committed by: cworth
Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv31643/src
Modified Files:
cairo-path-stroke.c
Log Message:
2005-09-16 Carl Worth <cworth at cworth.org>
* src/cairo-path-stroke.c: (_cairo_stroker_start_dash),
(_cairo_stroker_init): Prefer cairo_bool_t, TRUE, and FALSE over
int, 1, and 0.
Index: cairo-path-stroke.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-path-stroke.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- cairo-path-stroke.c 16 Sep 2005 17:24:54 -0000 1.26
+++ cairo-path-stroke.c 16 Sep 2005 17:49:49 -0000 1.27
@@ -42,17 +42,17 @@
cairo_gstate_t *gstate;
cairo_traps_t *traps;
- int has_current_point;
+ cairo_bool_t has_current_point;
cairo_point_t current_point;
cairo_point_t first_point;
- int has_current_face;
+ cairo_bool_t has_current_face;
cairo_stroke_face_t current_face;
- int has_first_face;
+ cairo_bool_t has_first_face;
cairo_stroke_face_t first_face;
- int dashed;
+ cairo_bool_t dashed;
int dash_index;
int dash_on;
double dash_remain;
@@ -113,7 +113,7 @@
if (++i == gstate->num_dashes)
i = 0;
}
- stroker->dashed = 1;
+ stroker->dashed = TRUE;
stroker->dash_index = i;
stroker->dash_on = on;
stroker->dash_remain = gstate->dash[i] - offset;
@@ -139,14 +139,14 @@
stroker->gstate = gstate;
stroker->traps = traps;
- stroker->has_current_point = 0;
- stroker->has_current_face = 0;
- stroker->has_first_face = 0;
+ stroker->has_current_point = FALSE;
+ stroker->has_current_face = FALSE;
+ stroker->has_first_face = FALSE;
if (gstate->dash)
_cairo_stroker_start_dash (stroker);
else
- stroker->dashed = 0;
+ stroker->dashed = FALSE;
}
static void
More information about the cairo-commit
mailing list