Le 20/12/2015 13:41, Chris Michael a écrit :
> Signed-off-by: Chris Michael <cpmich...@osg.samsung.com>
> ---
>  clients/simple-damage.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/clients/simple-damage.c b/clients/simple-damage.c
> index 37a81f5..24c67cc 100644
> --- a/clients/simple-damage.c
> +++ b/clients/simple-damage.c
> @@ -262,7 +262,8 @@ create_window(struct display *display, int width, int 
> height,
>               exit(1);
>       }
>  
> -     if (display->compositor_version < 4 &&
> +     if (display->compositor_version <
> +            WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION &&
>           (flags & WINDOW_FLAG_USE_DAMAGE_BUFFER)) {
>               fprintf(stderr, "wl_surface.damage_buffer unsupported in "
>                               "wl_surface version %d\n",
> 
Reviewed-By: David Fort <cont...@hardening-consulting.com>

-- 
David FORT
website: http://www.hardening-consulting.com/

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to