screencopy-v1: drop unnecessary pixman_region32_t casts

The Pixman API now accepts const parameters.
Simon Ser 2 years ago committed by Isaac Freund
parent bbd5145d8a
commit d25ab03326

@ -45,8 +45,7 @@ static void screencopy_damage_accumulate(struct screencopy_damage *damage,
if (state->committed & WLR_OUTPUT_STATE_DAMAGE) { if (state->committed & WLR_OUTPUT_STATE_DAMAGE) {
// If the compositor submitted damage, copy it over // If the compositor submitted damage, copy it over
pixman_region32_union(region, region, pixman_region32_union(region, region, &state->damage);
(pixman_region32_t *) &state->damage);
pixman_region32_intersect_rect(region, region, 0, 0, pixman_region32_intersect_rect(region, region, 0, 0,
output->width, output->height); output->width, output->height);
} else if (state->committed & WLR_OUTPUT_STATE_BUFFER) { } else if (state->committed & WLR_OUTPUT_STATE_BUFFER) {

Loading…
Cancel
Save