summaryrefslogtreecommitdiff
path: root/uxa
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-05-16 13:26:07 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-05-16 13:51:35 +0100
commit61835701fd411d3bb550ceee3365e30639e46861 (patch)
treed1379dc81ed6d0c52ff4b7b94b1a010b6bed2c27 /uxa
parent89f43f69a9c854fb2b82538a8938002675ca19e4 (diff)
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'uxa')
-rw-r--r--uxa/uxa-render.c8
1 files 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);
}