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>
dev
Armin Krezović 8 years ago committed by Quentin Glidic
parent 00a03d2f72
commit 7e71b8755a
No known key found for this signature in database
GPG Key ID: AC203F96E2C34BB7
  1. 2
      compositor/main.c
  2. 6
      libweston/compositor-wayland.c
  3. 2
      libweston/compositor-wayland.h

@ -1579,7 +1579,7 @@ load_wayland_backend(struct weston_compositor *c,
config.display_name = NULL; config.display_name = NULL;
config.fullscreen = 0; config.fullscreen = 0;
config.sprawl = 0; config.sprawl = 0;
config.use_pixman = 0; config.use_pixman = false;
const struct weston_option wayland_options[] = { const struct weston_option wayland_options[] = {
{ WESTON_OPTION_INTEGER, "width", 0, &parsed_options->width }, { WESTON_OPTION_INTEGER, "width", 0, &parsed_options->width },

@ -75,7 +75,7 @@ struct wayland_backend {
uint32_t event_mask; uint32_t event_mask;
} parent; } parent;
int use_pixman; bool use_pixman;
int sprawl_across_outputs; int sprawl_across_outputs;
int fullscreen; int fullscreen;
@ -2345,7 +2345,7 @@ wayland_backend_create(struct weston_compositor *compositor,
gl_renderer = weston_load_module("gl-renderer.so", gl_renderer = weston_load_module("gl-renderer.so",
"gl_renderer_interface"); "gl_renderer_interface");
if (!gl_renderer) if (!gl_renderer)
b->use_pixman = 1; b->use_pixman = true;
} }
if (!b->use_pixman) { if (!b->use_pixman) {
@ -2357,7 +2357,7 @@ wayland_backend_create(struct weston_compositor *compositor,
0) < 0) { 0) < 0) {
weston_log("Failed to initialize the GL renderer; " weston_log("Failed to initialize the GL renderer; "
"falling back to pixman.\n"); "falling back to pixman.\n");
b->use_pixman = 1; b->use_pixman = true;
} }
} }

@ -38,7 +38,7 @@ extern "C" {
struct weston_wayland_backend_config { struct weston_wayland_backend_config {
struct weston_backend_config base; struct weston_backend_config base;
int use_pixman; bool use_pixman;
int sprawl; int sprawl;
char *display_name; char *display_name;
int fullscreen; int fullscreen;

Loading…
Cancel
Save