From ed0a978c6dba9a0fbf8736bac12537829a97ae32 Mon Sep 17 00:00:00 2001 From: Au Doan Ngoc Date: Thu, 6 Apr 2023 16:39:33 +0700 Subject: ivi-controller: update data type of member in struct ivishell From weston version 8.0.0, data type of param in weston_config_section_get_bool() changed from int to bool. So, we need to update in wayland-ivi-extension source. Signed-off-by: Au Doan Ngoc --- weston-ivi-shell/src/ivi-controller.c | 2 +- weston-ivi-shell/src/ivi-controller.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/weston-ivi-shell/src/ivi-controller.c b/weston-ivi-shell/src/ivi-controller.c index c27966a..61cfdb6 100644 --- a/weston-ivi-shell/src/ivi-controller.c +++ b/weston-ivi-shell/src/ivi-controller.c @@ -2063,7 +2063,7 @@ get_config(struct weston_compositor *compositor, struct ivishell *shell) weston_config_section_get_bool(section, "enable-cursor", - &shell->enable_cursor, 0); + &shell->enable_cursor, false); wl_array_init(&shell->screen_ids); diff --git a/weston-ivi-shell/src/ivi-controller.h b/weston-ivi-shell/src/ivi-controller.h index 16dbe57..67599bd 100644 --- a/weston-ivi-shell/src/ivi-controller.h +++ b/weston-ivi-shell/src/ivi-controller.h @@ -87,7 +87,7 @@ struct ivishell { int32_t bkgnd_surface_id; uint32_t bkgnd_color; - int enable_cursor; + bool enable_cursor; struct ivisurface *bkgnd_surface; struct weston_layer bkgnd_layer; struct weston_view *bkgnd_view; -- cgit v1.2.1