summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2014-06-26 10:37:36 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2014-07-05 01:03:55 -0700
commitef5400843ff53c76ccfac99a80ef84baaee3dc38 (patch)
treefe83e860caa0cc02851ce2873911aa90c4554570 /clients
parent32abdbbad97e99cc76409ecfa4b446db63907cc3 (diff)
Use pixman_region32_clear instead of our own empty_region
This requires pixman 0.25.2 Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net>
Diffstat (limited to 'clients')
-rw-r--r--clients/nested.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/clients/nested.c b/clients/nested.c
index 44389e40..2a952beb 100644
--- a/clients/nested.c
+++ b/clients/nested.c
@@ -551,13 +551,6 @@ surface_set_input_region(struct wl_client *client,
}
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)
{
struct nested_surface *surface = wl_resource_get_user_data(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,