From d601fd09e30ed3222bb0a41d4c86ced24c1edf66 Mon Sep 17 00:00:00 2001 From: "joonbum.ko" Date: Wed, 24 May 2017 13:28:34 +0900 Subject: [PATCH] tpl_wayland_egl_thread: Modified using Wayland API that does not fit in bound version. - wl_surface_damage_buffer -> wl_surface_damage - Since 'wl_surface_damage_buffer' is higher API, it is not nomarlly supported on the current platform. - When wayland client need to use this API, I will add it with version checking syntax. Change-Id: If5d426edc63fb481c637b17f5955949b1b31c1a1 Signed-off-by: joonbum.ko --- src/tpl_wayland_egl_thread.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/tpl_wayland_egl_thread.c b/src/tpl_wayland_egl_thread.c index da715db..21f151a 100644 --- a/src/tpl_wayland_egl_thread.c +++ b/src/tpl_wayland_egl_thread.c @@ -844,20 +844,20 @@ _twe_thread_wl_surface_commit(twe_wl_surf_source *surf_source, buf_info->dx, buf_info->dy); if (buf_info->num_rects < 1 || buf_info->rects == NULL) { - wl_surface_damage_buffer(wl_surface, - buf_info->dx, buf_info->dy, - buf_info->width, buf_info->height); + wl_surface_damage(wl_surface, + buf_info->dx, buf_info->dy, + buf_info->width, buf_info->height); } else { int i; for (i = 0; i < buf_info->num_rects; i++) { int inverted_y = buf_info->height - (buf_info->rects[i * 4 + 1] + buf_info->rects[i * 4 + 3]); - wl_surface_damage_buffer(wl_surface, - buf_info->rects[i * 4 + 0], - inverted_y, - buf_info->rects[i * 4 + 2], - buf_info->rects[i * 4 + 3]); + wl_surface_damage(wl_surface, + buf_info->rects[i * 4 + 0], + inverted_y, + buf_info->rects[i * 4 + 2], + buf_info->rects[i * 4 + 3]); } } -- 2.7.4