summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-02-03 09:41:48 +0000
committerOwain G. Ainsworth <oga@openbsd.org>2011-03-16 20:17:02 +0000
commit0133814780a0d9f3b92e52bf2194aac479547808 (patch)
tree13dbae89a407f9f1689467a9a040af1167c6299d
parenta64629ae324bc0af22a01da2ba18ad8445b85890 (diff)
uxa: Undo damage translation before appending
The region is used to paint onto the backing pixmap (and thus translated) prior to being passed to the damage layer (wrt to the drawable). So the local translation needs to be undone first. Identified by Christopher James Halse Rogers. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=33650 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> (cherry picked from commit da990536eca09c6de74627541cd56ecfad925eda) Signed-off-by: Owain G. Ainsworth <oga@openbsd.org>
-rw-r--r--uxa/uxa-render.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c
index 107233bb..12705660 100644
--- a/uxa/uxa-render.c
+++ b/uxa/uxa-render.c
@@ -1082,6 +1082,7 @@ try_solid:
/* XXX xserver-1.8: CompositeRects is not tracked by Damage, so we must
* manually append the damaged regions ourselves.
*/
+ pixman_region_translate(&region, -dst_x, -dst_y);
DamageRegionAppend(dst->pDrawable, &region);
pixman_region_fini(&region);