From d25ab033266b5c7a38721c5b43db2ef423dac8f2 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 21 Feb 2023 10:27:27 +0100 Subject: [PATCH] screencopy-v1: drop unnecessary pixman_region32_t casts The Pixman API now accepts const parameters. --- types/wlr_screencopy_v1.c | 3 +-- 1 file changed, 1 insertion(+), 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) {