diff options
author | Simon Ser <contact@emersion.fr> | 2023-04-13 20:02:26 +0200 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2023-07-09 01:53:48 +0000 |
commit | 55845c3dd32ebeb08eee0eb51b60989da5dc1e05 (patch) | |
tree | 9244e05e365f6bc7040e70b513838f7925e7b1d6 | |
parent | 672f67db96a1e8b1d80f64b9ba286220ca475ec8 (diff) |
Constify pixman_image_set_clip_region()
This function copies the region passed in.
Signed-off-by: Simon Ser <contact@emersion.fr>
-rw-r--r-- | pixman/pixman-image.c | 4 | ||||
-rw-r--r-- | pixman/pixman.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/pixman/pixman-image.c b/pixman/pixman-image.c index 46b201f..72796fc 100644 --- a/pixman/pixman-image.c +++ b/pixman/pixman-image.c @@ -567,7 +567,7 @@ _pixman_image_validate (pixman_image_t *image) PIXMAN_EXPORT pixman_bool_t pixman_image_set_clip_region32 (pixman_image_t * image, - pixman_region32_t *region) + const pixman_region32_t *region) { image_common_t *common = (image_common_t *)image; pixman_bool_t result; @@ -591,7 +591,7 @@ pixman_image_set_clip_region32 (pixman_image_t * image, PIXMAN_EXPORT pixman_bool_t pixman_image_set_clip_region (pixman_image_t * image, - pixman_region16_t *region) + const pixman_region16_t *region) { image_common_t *common = (image_common_t *)image; pixman_bool_t result; diff --git a/pixman/pixman.h b/pixman/pixman.h index e6b235c..d697b53 100644 --- a/pixman/pixman.h +++ b/pixman/pixman.h @@ -1015,11 +1015,11 @@ void * pixman_image_get_destroy_data (pixman_image_t *image); /* Set properties */ PIXMAN_API pixman_bool_t pixman_image_set_clip_region (pixman_image_t *image, - pixman_region16_t *region); + const pixman_region16_t *region); PIXMAN_API pixman_bool_t pixman_image_set_clip_region32 (pixman_image_t *image, - pixman_region32_t *region); + const pixman_region32_t *region); PIXMAN_API void pixman_image_set_has_client_clip (pixman_image_t *image, |