diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-12-07 12:27:29 +0000 |
---|---|---|
committer | Owain G. Ainsworth <oga@openbsd.org> | 2011-03-16 19:52:10 +0000 |
commit | 64cc9913bcafaefcce45b9e1acaff783f6b1ba17 (patch) | |
tree | 79176dd45f3ea08ca0c08982d8823f8d0f3efdeb /uxa | |
parent | 11815fef252b4212c22c8aef64b6bf99fbf927fb (diff) |
uxa: Emit the damage after the render for the workaround in uxa_solid_rects
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
(cherry picked from commit 1ba983034b3a70fb541dc359189c020ee497c634)
Signed-off-by: Owain G. Ainsworth <oga@openbsd.org>
Diffstat (limited to 'uxa')
-rw-r--r-- | uxa/uxa-render.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c index e0f6731b..107233bb 100644 --- a/uxa/uxa-render.c +++ b/uxa/uxa-render.c @@ -990,11 +990,6 @@ uxa_solid_rects (CARD8 op, return; } - /* XXX xserver-1.8: CompositeRects is not tracked by Damage, so we must - * manually append the damaged regions ourselves. - */ - DamageRegionAppend(dst->pDrawable, ®ion); - pixman_region_translate(®ion, dst_x, dst_y); boxes = pixman_region_rectangles(®ion, &num_boxes); extents = pixman_region_extents (®ion); @@ -1084,6 +1079,11 @@ try_solid: FreePicture(src, 0); } + /* XXX xserver-1.8: CompositeRects is not tracked by Damage, so we must + * manually append the damaged regions ourselves. + */ + DamageRegionAppend(dst->pDrawable, ®ion); + pixman_region_fini(®ion); return; |