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:
Simon Ser 2024-01-04 12:04:17 +01:00
parent a818251aec
commit 83c5b15194
5 changed files with 17 additions and 16 deletions

View file

@ -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;
}