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>
This commit is contained in:
Uli Schlachter 2012-02-10 18:00:01 +01:00
parent 2f4645db84
commit f7eaf37f04

View file

@ -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)) {