mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 00:22:25 +00:00
screencopy-v1: drop unnecessary pixman_region32_t casts
The Pixman API now accepts const parameters.
This commit is contained in:
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 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) {
|
||||
|
Loading…
Reference in New Issue
Block a user