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>
This commit is contained in:
Armin Krezović 2016-10-09 17:30:22 +02:00 committed by Quentin Glidic
parent 00a03d2f72
commit 7e71b8755a
No known key found for this signature in database
GPG Key ID: AC203F96E2C34BB7
3 changed files with 5 additions and 5 deletions

View File

@ -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 },

View File

@ -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;
}
}

View File

@ -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;