summaryrefslogtreecommitdiff
path: root/src/cairo-surface-wrapper.c
diff options
context:
space:
mode:
authorUli Schlachter <psychon@znc.in>2012-02-10 18:00:01 +0100
committerUli Schlachter <psychon@znc.in>2012-02-10 18:00:01 +0100
commitf7eaf37f0432952ce12708e32e0641fa97bfd715 (patch)
treeb0de53b6e518cfb43d4cce696f2aca1cec0b3b79 /src/cairo-surface-wrapper.c
parent2f4645db84215f38ca0a19886de56971ce4f2d79 (diff)
downloadcairo-f7eaf37f0432952ce12708e32e0641fa97bfd715.tar.gz
Wrapper: Don't translate clips extents' origin
If a bounded recording surface doesn't have its extents .x and .y at the surface's origin, this code was translating all clips to make up for that. However, the clip already is in device space. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=41583 Signed-off-by: Uli Schlachter <psychon@znc.in> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-surface-wrapper.c')
-rw-r--r--src/cairo-surface-wrapper.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/cairo-surface-wrapper.c b/src/cairo-surface-wrapper.c
index 00d9aa343..931d11d21 100644
--- a/src/cairo-surface-wrapper.c
+++ b/src/cairo-surface-wrapper.c
@@ -122,10 +122,6 @@ _cairo_surface_wrapper_get_clip (cairo_surface_wrapper_t *wrapper,
copy = _cairo_clip_copy (clip);
if (wrapper->has_extents) {
copy = _cairo_clip_intersect_rectangle (copy, &wrapper->extents);
- if (wrapper->extents.x | wrapper->extents.y)
- copy = _cairo_clip_translate (copy,
- -wrapper->extents.x,
- -wrapper->extents.y);
}
copy = _cairo_clip_transform (copy, &wrapper->transform);
if (! _cairo_matrix_is_identity (&wrapper->target->device_transform)) {