Fix damage rectangle of buffer when it needs to add full damage 04/248804/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 25 Nov 2020 04:43:42 +0000 (13:43 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Wed, 2 Dec 2020 09:23:28 +0000 (18:23 +0900)
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
src/tpl_wayland_egl_thread.c

index 1a57fef..1491898 100755 (executable)
@@ -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);
                }
index 84b6d86..941a9eb 100755 (executable)
@@ -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 {