diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2008-05-09 13:16:13 +0200 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2008-05-09 15:54:11 +0200 |
commit | 6c9902fd746d70d9cc22c938f4ca68640e48bb73 (patch) | |
tree | b1955b7f407d04c15b59b231ae1ed885124c0c4f /src/cairo-traps.c | |
parent | 0e965c970bd310bd8f06cd59ed0cf631ae88659a (diff) | |
download | cairo-6c9902fd746d70d9cc22c938f4ca68640e48bb73.tar.gz |
Add more consts to function signatures and remove stale prototype
Diffstat (limited to 'src/cairo-traps.c')
-rw-r--r-- | src/cairo-traps.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/cairo-traps.c b/src/cairo-traps.c index 8d7160730..257fd0d3a 100644 --- a/src/cairo-traps.c +++ b/src/cairo-traps.c @@ -557,7 +557,8 @@ _cairo_trap_contains (cairo_trapezoid_t *t, cairo_point_t *pt) } cairo_bool_t -_cairo_traps_contain (cairo_traps_t *traps, double x, double y) +_cairo_traps_contain (const cairo_traps_t *traps, + double x, double y) { int i; cairo_point_t point; @@ -574,7 +575,8 @@ _cairo_traps_contain (cairo_traps_t *traps, double x, double y) } void -_cairo_traps_extents (cairo_traps_t *traps, cairo_box_t *extents) +_cairo_traps_extents (const cairo_traps_t *traps, + cairo_box_t *extents) { if (traps->num_traps == 0) { extents->p1.x = extents->p1.y = _cairo_fixed_from_int (0); @@ -598,8 +600,8 @@ _cairo_traps_extents (cairo_traps_t *traps, cairo_box_t *extents) * or %CAIRO_STATUS_NO_MEMORY **/ cairo_int_status_t -_cairo_traps_extract_region (cairo_traps_t *traps, - cairo_region_t *region) +_cairo_traps_extract_region (const cairo_traps_t *traps, + cairo_region_t *region) { cairo_box_int_t stack_boxes[CAIRO_STACK_ARRAY_LENGTH (cairo_box_int_t)]; cairo_box_int_t *boxes = stack_boxes; |