summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-03-30 10:22:18 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-03-30 10:23:30 +0100
commite238d10b30e18084bf07eb1643fdf48ef35467ab (patch)
tree50a5c7c237e921a95f1cd3b766a4f92634277a22
parentde1612bdd767ca37e01938f8e41d9699531a49d9 (diff)
[region] Use const cairo_rectangle_int_t consistently.
Add the const declaration to a couple of functions.
-rw-r--r--src/cairo-region.c4
-rw-r--r--src/cairo.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/cairo-region.c b/src/cairo-region.c
index 2ec3941c..3f2b9789 100644
--- a/src/cairo-region.c
+++ b/src/cairo-region.c
@@ -121,7 +121,7 @@ slim_hidden_def (cairo_region_create);
* Since: 1.10
**/
cairo_region_t *
-cairo_region_create_rectangle (cairo_rectangle_int_t *rectangle)
+cairo_region_create_rectangle (const cairo_rectangle_int_t *rectangle)
{
cairo_region_t *region;
@@ -335,7 +335,7 @@ slim_hidden_def (cairo_region_subtract);
**/
cairo_status_t
cairo_region_subtract_rectangle (cairo_region_t *dst,
- cairo_rectangle_int_t *rectangle)
+ const cairo_rectangle_int_t *rectangle)
{
cairo_status_t status = CAIRO_STATUS_SUCCESS;
pixman_region32_t region;
diff --git a/src/cairo.h b/src/cairo.h
index 025ca6c9..917d3640 100644
--- a/src/cairo.h
+++ b/src/cairo.h
@@ -2368,7 +2368,7 @@ cairo_public cairo_region_t *
cairo_region_create (void);
cairo_public cairo_region_t *
-cairo_region_create_rectangle (cairo_rectangle_int_t *rectangle);
+cairo_region_create_rectangle (const cairo_rectangle_int_t *rectangle);
cairo_public cairo_region_t *
cairo_region_copy (cairo_region_t *original);
@@ -2409,7 +2409,7 @@ cairo_region_subtract (cairo_region_t *dst, cairo_region_t *other);
cairo_public cairo_status_t
cairo_region_subtract_rectangle (cairo_region_t *dst,
- cairo_rectangle_int_t *rectangle);
+ const cairo_rectangle_int_t *rectangle);
cairo_public cairo_status_t
cairo_region_intersect (cairo_region_t *dst, cairo_region_t *other);