[PATCH weston 2/8] compositor-drm: Write a name in the mode generated from a modeline

Quentin Glidic sardemff7+wayland at sardemff7.net
Tue May 3 13:08:15 UTC 2016


On 02/05/2016 23:40, Emmanuel Gil Peyrot wrote:
> The current behaviour leaves the name empty, making it somewhat harder
> to determine the characteristics of this mode from a debugger.
>
> Signed-off-by: Emmanuel Gil Peyrot <emmanuel.peyrot at collabora.com>
> ---
>  src/compositor-drm.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/compositor-drm.c b/src/compositor-drm.c
> index 7c5e1af..ea118fa 100644
> --- a/src/compositor-drm.c
> +++ b/src/compositor-drm.c
> @@ -2121,6 +2121,8 @@ parse_modeline(const char *s, drmModeModeInfo *mode)
>  	else
>  		return -1;
>
> +	snprintf(mode->name, sizeof mode->name, "%dx%d@%.3f", mode->hdisplay, mode->vdisplay, fclock);
> +
>  	return 0;
>  }
>
>


Reviewed-by: Quentin Glidic <sardemff7+git at sardemff7.net>

Should land on its own.

-- 

Quentin “Sardem FF7” Glidic


More information about the wayland-devel mailing list