From 060cf11f235c481ed65fe3cf085c23af11e54f6f Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Wed, 18 Nov 2015 16:32:26 -0600 Subject: [PATCH] compositor: Change "touched" to bool Signed-off-by: Derek Foreman Reviewed-by: Pekka Paalanen --- src/compositor.c | 4 ++-- src/compositor.h | 2 +- src/rpi-renderer.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index f8437e81..67be07d4 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -2044,12 +2044,12 @@ compositor_accumulate_damage(struct weston_compositor *ec) pixman_region32_fini(&clip); wl_list_for_each(ev, &ec->view_list, link) - ev->surface->touched = 0; + ev->surface->touched = false; wl_list_for_each(ev, &ec->view_list, link) { if (ev->surface->touched) continue; - ev->surface->touched = 1; + ev->surface->touched = true; surface_flush_damage(ev->surface); diff --git a/src/compositor.h b/src/compositor.h index 203c2fd2..a07b51a2 100644 --- a/src/compositor.h +++ b/src/compositor.h @@ -968,7 +968,7 @@ struct weston_surface { /* Not for long-term storage. This exists for book-keeping while * iterating over surfaces and views */ - int32_t touched; + bool touched; void *renderer_state; diff --git a/src/rpi-renderer.c b/src/rpi-renderer.c index 76e1ddf7..33eb67cc 100644 --- a/src/rpi-renderer.c +++ b/src/rpi-renderer.c @@ -1347,13 +1347,13 @@ rpi_renderer_repaint_output(struct weston_output *base, /* Swap resources on surfaces as needed */ wl_list_for_each_reverse(wv, &compositor->view_list, link) - wv->surface->touched = 0; + wv->surface->touched = false; wl_list_for_each_reverse(wv, &compositor->view_list, link) { view = to_rpir_view(wv); if (!wv->surface->touched) { - wv->surface->touched = 1; + wv->surface->touched = true; if (view->surface->buffer_type == BUFFER_TYPE_EGL || view->surface->need_swap)