mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-02 18:58:14 +02:00
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:
parent
2f4645db84
commit
f7eaf37f04
1 changed files with 0 additions and 4 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue