aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-02-21 10:27:27 +0100
committerIsaac Freund <mail@isaacfreund.com>2023-02-21 09:37:59 +0000
commitd25ab033266b5c7a38721c5b43db2ef423dac8f2 (patch)
tree68bd7f40710fed55382694837297a310144a13d6
parentbbd5145d8a5212f350c01e5f8519a81783ced2cc (diff)
screencopy-v1: drop unnecessary pixman_region32_t casts
The Pixman API now accepts const parameters.
-rw-r--r--types/wlr_screencopy_v1.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/types/wlr_screencopy_v1.c b/types/wlr_screencopy_v1.c
index 4ca659a4..ee33dadd 100644
--- a/types/wlr_screencopy_v1.c
+++ b/types/wlr_screencopy_v1.c
@@ -45,8 +45,7 @@ static void screencopy_damage_accumulate(struct screencopy_damage *damage,
if (state->committed & WLR_OUTPUT_STATE_DAMAGE) {
// If the compositor submitted damage, copy it over
- pixman_region32_union(region, region,
- (pixman_region32_t *) &state->damage);
+ pixman_region32_union(region, region, &state->damage);
pixman_region32_intersect_rect(region, region, 0, 0,
output->width, output->height);
} else if (state->committed & WLR_OUTPUT_STATE_BUFFER) {