mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01: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
1 changed files with 1 additions and 2 deletions
|
@ -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…
Reference in a new issue