[PATCH weston 04/10] compositor-wayland: Convert draw_initial_frame to boolean
Armin Krezović
krezovic.armin at gmail.com
Sun Oct 9 15:30:25 UTC 2016
Signed-off-by: Armin Krezović <krezovic.armin at gmail.com>
---
libweston/compositor-wayland.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libweston/compositor-wayland.c b/libweston/compositor-wayland.c
index a5a360c..d26360e 100644
--- a/libweston/compositor-wayland.c
+++ b/libweston/compositor-wayland.c
@@ -91,7 +91,7 @@ struct wayland_output {
struct weston_output base;
struct {
- int draw_initial_frame;
+ bool draw_initial_frame;
struct wl_surface *surface;
struct wl_output *output;
@@ -461,7 +461,7 @@ wayland_output_start_repaint_loop(struct weston_output *output_base)
* callback won't be invoked. The buffer is transparent and of the
* same size as the future real output buffer. */
if (output->parent.draw_initial_frame) {
- output->parent.draw_initial_frame = 0;
+ output->parent.draw_initial_frame = false;
draw_initial_frame(output);
}
@@ -989,7 +989,7 @@ wayland_output_switch_mode(struct weston_output *output_base,
&mode_status);
/* This should kick-start things again */
- output->parent.draw_initial_frame = 1;
+ output->parent.draw_initial_frame = true;
wayland_output_start_repaint_loop(&output->base);
mode_status = MODE_STATUS_UNKNOWN;
@@ -1043,7 +1043,7 @@ wayland_backend_create_output_surface(struct wayland_output *output)
wl_surface_set_user_data(output->parent.surface, output);
- output->parent.draw_initial_frame = 1;
+ output->parent.draw_initial_frame = true;
if (b->parent.shell) {
output->parent.shell_surface =
--
2.10.1
More information about the wayland-devel
mailing list