diff options
author | Simon Ser <contact@emersion.fr> | 2023-02-21 10:27:27 +0100 |
---|---|---|
committer | Isaac Freund <mail@isaacfreund.com> | 2023-02-21 09:37:59 +0000 |
commit | d25ab033266b5c7a38721c5b43db2ef423dac8f2 (patch) | |
tree | 68bd7f40710fed55382694837297a310144a13d6 | |
parent | bbd5145d8a5212f350c01e5f8519a81783ced2cc (diff) |
screencopy-v1: drop unnecessary pixman_region32_t casts
The Pixman API now accepts const parameters.
-rw-r--r-- | types/wlr_screencopy_v1.c | 3 |
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) { |