diff options
author | Carl Worth <cworth@cworth.org> | 2003-07-30 08:30:50 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2003-07-30 08:30:50 +0000 |
commit | e97cfd5eae9874cd665646403a6f8e5fbdf5621e (patch) | |
tree | 080fbedc4a063487200229bdadab179ebf19004c /src/cairo-path-fill.c | |
parent | 2026b1c44aeeb09e7015efadd508aeec28d778fa (diff) |
Made all changes necessary to abandon the Xc library, (sucking the functionality up into cairo_surface_t instead). Eliminated most of the remaining X datatypes (XFixed, XPointFixed, XLineFixed, XTrapezoid). Fixed some numerical problems relating to pen initialization and intersection calculation.
Diffstat (limited to 'src/cairo-path-fill.c')
-rw-r--r-- | src/cairo-path-fill.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/cairo-path-fill.c b/src/cairo-path-fill.c index 47ef9549..80715d71 100644 --- a/src/cairo-path-fill.c +++ b/src/cairo-path-fill.c @@ -41,10 +41,12 @@ static void _cairo_filler_fini (cairo_filler_t *filler); static cairo_status_t -_cairo_filler_add_edge (void *closure, XPointFixed *p1, XPointFixed *p2); +_cairo_filler_add_edge (void *closure, cairo_point_t *p1, cairo_point_t *p2); static cairo_status_t -_cairo_filler_add_spline (void *closure, XPointFixed *a, XPointFixed *b, XPointFixed *c, XPointFixed *d); +_cairo_filler_add_spline (void *closure, + cairo_point_t *a, cairo_point_t *b, + cairo_point_t *c, cairo_point_t *d); static cairo_status_t _cairo_filler_done_sub_path (void *closure, cairo_sub_path_done_t done); @@ -68,7 +70,7 @@ _cairo_filler_fini (cairo_filler_t *filler) } static cairo_status_t -_cairo_filler_add_edge (void *closure, XPointFixed *p1, XPointFixed *p2) +_cairo_filler_add_edge (void *closure, cairo_point_t *p1, cairo_point_t *p2) { cairo_filler_t *filler = closure; cairo_polygon_t *polygon = &filler->polygon; @@ -77,7 +79,9 @@ _cairo_filler_add_edge (void *closure, XPointFixed *p1, XPointFixed *p2) } static cairo_status_t -_cairo_filler_add_spline (void *closure, XPointFixed *a, XPointFixed *b, XPointFixed *c, XPointFixed *d) +_cairo_filler_add_spline (void *closure, + cairo_point_t *a, cairo_point_t *b, + cairo_point_t *c, cairo_point_t *d) { int i; cairo_status_t status = CAIRO_STATUS_SUCCESS; |