From ccd9039cf00c0023a8678c8733bb6bb5049d1867 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Thu, 17 Mar 2016 09:37:14 +0100 Subject: [PATCH xserver] glamor: fix wrong offset on composite rectangles When using PictOpSrc, the destination is wrongly shifted back to (0, 0). Signed-off-by: Olivier Fourdan --- glamor/glamor_compositerects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glamor/glamor_compositerects.c b/glamor/glamor_compositerects.c index 885a6c0..ff8dce4 100644 --- a/glamor/glamor_compositerects.c +++ b/glamor/glamor_compositerects.c @@ -226,7 +226,6 @@ glamor_composite_rectangles(CARD8 op, RegionNumRects(®ion)); glamor_get_drawable_deltas(dst->pDrawable, pixmap, &dst_x, &dst_y); - pixman_region_translate(®ion, dst_x, dst_y); DEBUGF("%s: pixmap +(%d, %d) extents (%d, %d),(%d, %d)\n", __FUNCTION__, dst_x, dst_y, @@ -237,6 +236,7 @@ glamor_composite_rectangles(CARD8 op, if (op == PictOpSrc || op == PictOpClear) { CARD32 pixel; + pixman_region_translate(®ion, dst_x, dst_y); if (op == PictOpClear) pixel = 0; else -- 2.5.0