From 61835701fd411d3bb550ceee3365e30639e46861 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 16 May 2010 13:26:07 +0100 Subject: [PATCH] uxa: Patterns are acquired at 0,0 Set the correct offset for the gradients patterns after rendering to a local Picture. Fixes cairo/test/huge-radial and friends Signed-off-by: Chris Wilson --- uxa/uxa-render.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c index d2c11a39..e062001e 100644 --- a/uxa/uxa-render.c +++ b/uxa/uxa-render.c @@ -838,8 +838,8 @@ uxa_acquire_picture(ScreenPtr screen, *out_x = x + src->pDrawable->x; *out_y = y + src->pDrawable->y; } else { - *out_x = x; - *out_y = y; + *out_x = 0; + *out_y = 0; } return src; } @@ -860,8 +860,8 @@ uxa_acquire_picture(ScreenPtr screen, return dst; } - *out_x = x; - *out_y = y; + *out_x = 0; + *out_y = 0; return uxa_acquire_pattern(screen, src, format, x, y, width, height); }