From 49674d57f6233356058c261f98efe2a5531f8ec7 Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Thu, 25 Jul 2019 14:14:59 +0200 Subject: [PATCH] uwac: Re-enable damage tracking --- uwac/libuwac/uwac-window.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/uwac/libuwac/uwac-window.c b/uwac/libuwac/uwac-window.c index d63bb1af5..a03f493ea 100644 --- a/uwac/libuwac/uwac-window.c +++ b/uwac/libuwac/uwac-window.c @@ -619,16 +619,13 @@ static const struct wl_callback_listener frame_listener = static void UwacSubmitBufferPtr(UwacWindow* window, UwacBuffer* buffer) { -#if 0 UINT32 nrects, i; #ifdef HAVE_PIXMAN_REGION const pixman_box32_t* box; #else const RECTANGLE_16* box; -#endif #endif wl_surface_attach(window->surface, buffer->wayland_buffer, 0, 0); -#if 0 #ifdef HAVE_PIXMAN_REGION box = pixman_region32_rectangles(&buffer->damage, &nrects); @@ -642,9 +639,6 @@ static void UwacSubmitBufferPtr(UwacWindow* window, UwacBuffer* buffer) wl_surface_damage(window->surface, box->left, box->top, (box->right - box->left), (box->bottom - box->top)); -#endif -#else - wl_surface_damage(window->surface, 0, 0, window->width, window->height); #endif struct wl_callback* frame_callback = wl_surface_frame(window->surface); wl_callback_add_listener(frame_callback, &frame_listener, window);