From e57f44eaa847f9797dfec5c2deaec33339533de9 Mon Sep 17 00:00:00 2001 From: Changyeon Lee Date: Wed, 25 Nov 2020 13:43:42 +0900 Subject: [PATCH] Fix damage rectangle of buffer when it needs to add full damage The damage rectangle is specified in buffer coordinates, where x and y specify the upper left corner of the damage rectangle. geometry of window should not be considered. Change-Id: I68153ec6106f80d6537683276bc1634189ad96e2 --- src/tpl_wayland_egl.c | 4 ++-- src/tpl_wayland_egl_thread.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tpl_wayland_egl.c b/src/tpl_wayland_egl.c index 1a57fef..1491898 100755 --- a/src/tpl_wayland_egl.c +++ b/src/tpl_wayland_egl.c @@ -898,8 +898,8 @@ __tpl_wayland_egl_surface_commit(tpl_surface_t *surface, wayland_egl_buffer->height); } else { wl_surface_damage_buffer(wl_egl_window->surface, - wayland_egl_buffer->dx, - wayland_egl_buffer->dy, + 0, + 0, wayland_egl_buffer->width, wayland_egl_buffer->height); } diff --git a/src/tpl_wayland_egl_thread.c b/src/tpl_wayland_egl_thread.c index 84b6d86..941a9eb 100755 --- a/src/tpl_wayland_egl_thread.c +++ b/src/tpl_wayland_egl_thread.c @@ -2480,7 +2480,7 @@ _twe_thread_wl_surface_commit(twe_wl_surf_source *surf_source, buf_info->width, buf_info->height); } else { wl_surface_damage_buffer(wl_surface, - buf_info->dx, buf_info->dy, + 0, 0, buf_info->width, buf_info->height); } } else { -- 2.7.4