[PATCH weston 14/15] libweston: make weston_output::connection_internal a bool
Armin Krezović
krezovic.armin at gmail.com
Tue Apr 4 20:05:58 UTC 2017
On 04.04.2017 12:58, Pekka Paalanen wrote:
> From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
>
> It really is a boolean.
>
> Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
Reviewed-by: Armin Krezović <krezovic.armin at gmail.com>
Thanks, Armin.
> ---
> libweston/compositor-drm.c | 2 +-
> libweston/compositor.h | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c
> index 3f7e97e..3de11b8 100644
> --- a/libweston/compositor-drm.c
> +++ b/libweston/compositor-drm.c
> @@ -2512,7 +2512,7 @@ drm_output_enable(struct weston_output *base)
> find_and_parse_output_edid(b, output, output->connector);
> if (output->connector->connector_type == DRM_MODE_CONNECTOR_LVDS ||
> output->connector->connector_type == DRM_MODE_CONNECTOR_eDP)
> - output->base.connection_internal = 1;
> + output->base.connection_internal = true;
>
> weston_plane_init(&output->cursor_plane, b->compositor,
> INT32_MIN, INT32_MIN);
> diff --git a/libweston/compositor.h b/libweston/compositor.h
> index 4eebe6c..c375f48 100644
> --- a/libweston/compositor.h
> +++ b/libweston/compositor.h
> @@ -223,7 +223,7 @@ struct weston_output {
> void (*set_backlight)(struct weston_output *output, uint32_t value);
> void (*set_dpms)(struct weston_output *output, enum dpms_enum level);
>
> - int connection_internal;
> + bool connection_internal;
> uint16_t gamma_size;
> void (*set_gamma)(struct weston_output *output,
> uint16_t size,
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 870 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20170404/c681e032/attachment.sig>
More information about the wayland-devel
mailing list