Use pixman_region32_clear instead of our own empty_region

This requires pixman 0.25.2

Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net>
This commit is contained in:
Jason Ekstrand
2014-06-26 10:37:36 -07:00
parent 32abdbbad9
commit ef5400843f
4 changed files with 10 additions and 33 deletions
+1 -8
View File
@@ -550,13 +550,6 @@ surface_set_input_region(struct wl_client *client,
fprintf(stderr, "surface_set_input_region\n");
}
static void
empty_region(pixman_region32_t *region)
{
pixman_region32_fini(region);
pixman_region32_init(region);
}
static void
surface_commit(struct wl_client *client, struct wl_resource *resource)
{
@@ -574,7 +567,7 @@ surface_commit(struct wl_client *client, struct wl_resource *resource)
surface->pending.newly_attached = 0;
/* wl_surface.damage */
empty_region(&surface->pending.damage);
pixman_region32_clear(&surface->pending.damage);
/* wl_surface.frame */
wl_list_insert_list(&surface->frame_callback_list,