From 7e71b8755a4921a327effcda84a1b94737814211 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Armin=20Krezovi=C4=87?= Date: Sun, 9 Oct 2016 17:30:22 +0200 Subject: [PATCH] compositor-wayland: Convert use-pixman flag to boolean MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Armin Krezović Reviewed-by: Quentin Glidic --- compositor/main.c | 2 +- libweston/compositor-wayland.c | 6 +++--- libweston/compositor-wayland.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/compositor/main.c b/compositor/main.c index fca9778..d081106 100644 --- a/compositor/main.c +++ b/compositor/main.c @@ -1579,7 +1579,7 @@ load_wayland_backend(struct weston_compositor *c, config.display_name = NULL; config.fullscreen = 0; config.sprawl = 0; - config.use_pixman = 0; + config.use_pixman = false; const struct weston_option wayland_options[] = { { WESTON_OPTION_INTEGER, "width", 0, &parsed_options->width }, diff --git a/libweston/compositor-wayland.c b/libweston/compositor-wayland.c index 46fdde1..d1ff8d7 100644 --- a/libweston/compositor-wayland.c +++ b/libweston/compositor-wayland.c @@ -75,7 +75,7 @@ struct wayland_backend { uint32_t event_mask; } parent; - int use_pixman; + bool use_pixman; int sprawl_across_outputs; int fullscreen; @@ -2345,7 +2345,7 @@ wayland_backend_create(struct weston_compositor *compositor, gl_renderer = weston_load_module("gl-renderer.so", "gl_renderer_interface"); if (!gl_renderer) - b->use_pixman = 1; + b->use_pixman = true; } if (!b->use_pixman) { @@ -2357,7 +2357,7 @@ wayland_backend_create(struct weston_compositor *compositor, 0) < 0) { weston_log("Failed to initialize the GL renderer; " "falling back to pixman.\n"); - b->use_pixman = 1; + b->use_pixman = true; } } diff --git a/libweston/compositor-wayland.h b/libweston/compositor-wayland.h index 58e0fb1..9a9dde8 100644 --- a/libweston/compositor-wayland.h +++ b/libweston/compositor-wayland.h @@ -38,7 +38,7 @@ extern "C" { struct weston_wayland_backend_config { struct weston_backend_config base; - int use_pixman; + bool use_pixman; int sprawl; char *display_name; int fullscreen; -- 2.7.4