compositor-wayland: Convert use-pixman flag to boolean
Signed-off-by: Armin Krezović <krezovic.armin@gmail.com>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
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 @@
uint32_t event_mask;
} parent;
- int use_pixman;
+ bool use_pixman;
int sprawl_across_outputs;
int fullscreen;
@@ -2345,7 +2345,7 @@
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 @@
0) < 0) {
weston_log("Failed to initialize the GL renderer; "
"falling back to pixman.\n");
- b->use_pixman = 1;
+ b->use_pixman = true;
}
}