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:
committed by
Quentin Glidic
parent
00a03d2f72
commit
7e71b8755a
+1
-1
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user