mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
Remove all calls to pixman_region32_not_empty()
Replace them with pixman_region32_empty(), which avoids using a double-negative when checking if a region is empty. Also use that new function when checking for non-empty regions so that only one variant of the Pixman API is used.
This commit is contained in:
parent
a818251aec
commit
83c5b15194
5 changed files with 17 additions and 16 deletions
|
|
@ -116,7 +116,7 @@ void wlr_output_add_software_cursors_to_render_pass(struct wlr_output *output,
|
|||
pixman_region32_intersect(&cursor_damage, &cursor_damage, damage);
|
||||
}
|
||||
|
||||
if (!pixman_region32_not_empty(&cursor_damage)) {
|
||||
if (pixman_region32_empty(&cursor_damage)) {
|
||||
pixman_region32_fini(&cursor_damage);
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue