[cairo-commit] src/cairo.h src/cairo-region.c
Benjamin Otte
company at kemper.freedesktop.org
Wed Apr 7 13:12:19 PDT 2010
src/cairo-region.c | 4 ++--
src/cairo.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
New commits:
commit d7f71ac5c209376bacb45199a0eaa3b1937172e9
Author: Benjamin Otte <otte at redhat.com>
Date: Wed Apr 7 21:57:38 2010 +0200
region: Make the 2nd argument to intersect and union const
diff --git a/src/cairo-region.c b/src/cairo-region.c
index 6ccd735..d423bd0 100644
--- a/src/cairo-region.c
+++ b/src/cairo-region.c
@@ -492,7 +492,7 @@ slim_hidden_def (cairo_region_subtract_rectangle);
* Since: 1.10
**/
cairo_status_t
-cairo_region_intersect (cairo_region_t *dst, cairo_region_t *other)
+cairo_region_intersect (cairo_region_t *dst, const cairo_region_t *other)
{
if (dst->status)
return dst->status;
@@ -555,7 +555,7 @@ slim_hidden_def (cairo_region_intersect_rectangle);
**/
cairo_status_t
cairo_region_union (cairo_region_t *dst,
- cairo_region_t *other)
+ const cairo_region_t *other)
{
if (dst->status)
return dst->status;
diff --git a/src/cairo.h b/src/cairo.h
index 6c4faea..fc6a68a 100644
--- a/src/cairo.h
+++ b/src/cairo.h
@@ -2672,14 +2672,14 @@ cairo_region_subtract_rectangle (cairo_region_t *dst,
const cairo_rectangle_int_t *rectangle);
cairo_public cairo_status_t
-cairo_region_intersect (cairo_region_t *dst, cairo_region_t *other);
+cairo_region_intersect (cairo_region_t *dst, const cairo_region_t *other);
cairo_public cairo_status_t
cairo_region_intersect_rectangle (cairo_region_t *dst,
const cairo_rectangle_int_t *rectangle);
cairo_public cairo_status_t
-cairo_region_union (cairo_region_t *dst, cairo_region_t *other);
+cairo_region_union (cairo_region_t *dst, const cairo_region_t *other);
cairo_public cairo_status_t
cairo_region_union_rectangle (cairo_region_t *dst,
More information about the cairo-commit
mailing list