From 78e96c0126c8cb500bce2d444f5ccd3e22212450 Mon Sep 17 00:00:00 2001 From: Taekyun Kim Date: Wed, 12 Aug 2015 18:45:23 +0900 Subject: [PATCH] pepper: Clip surface damage region within surface extents Change-Id: Ib26eaa48ff46ff455047c4fb8ba6187d268ba310 --- src/lib/pepper/view.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/pepper/view.c b/src/lib/pepper/view.c index d8c9d25..ccf1c46 100644 --- a/src/lib/pepper/view.c +++ b/src/lib/pepper/view.c @@ -59,6 +59,9 @@ pepper_view_surface_damage(pepper_view_t *view) pixman_region32_init(&damage); pixman_region32_copy(&damage, &view->surface->damage_region); + pixman_region32_intersect_rect(&damage, &damage, + 0, 0, view->surface->w, view->surface->h); + pepper_transform_pixman_region(&damage, &view->global_transform); pixman_region32_translate(&damage, -entry->plane->output->geometry.x, -- 2.7.4