summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2016-06-04 14:43:43 +0930
committerAdrian Johnson <ajohnson@redneon.com>2016-06-05 20:43:36 +0930
commitd2dc2e90a71ae4822845ac4bab3871475335a69e (patch)
treef4c7b0e35f63923597622c4e6846d64ba42b4f26
parent58df191946b7d275c5706dc40e1cf3dffa7cceae (diff)
Fix test failures when recording surface extents has negative x,y
Fixes record-neg-bounded-extents (image only) and recording-ink-extents.
-rw-r--r--src/cairo-surface-wrapper.c6
-rw-r--r--test/reference/record-neg-extents-bounded.ref.pngbin0 -> 632 bytes
2 files changed, 0 insertions, 6 deletions
diff --git a/src/cairo-surface-wrapper.c b/src/cairo-surface-wrapper.c
index 64e2d1e94..f69755f0c 100644
--- a/src/cairo-surface-wrapper.c
+++ b/src/cairo-surface-wrapper.c
@@ -81,9 +81,6 @@ _cairo_surface_wrapper_get_transform (cairo_surface_wrapper_t *wrapper,
{
cairo_matrix_init_identity (m);
- if (wrapper->has_extents && (wrapper->extents.x || wrapper->extents.y))
- cairo_matrix_translate (m, -wrapper->extents.x, -wrapper->extents.y);
-
if (! _cairo_matrix_is_identity (&wrapper->transform))
cairo_matrix_multiply (m, &wrapper->transform, m);
@@ -109,9 +106,6 @@ _cairo_surface_wrapper_get_inverse_transform (cairo_surface_wrapper_t *wrapper,
assert (status == CAIRO_STATUS_SUCCESS);
cairo_matrix_multiply (m, &inv, m);
}
-
- if (wrapper->has_extents && (wrapper->extents.x || wrapper->extents.y))
- cairo_matrix_translate (m, wrapper->extents.x, wrapper->extents.y);
}
static cairo_clip_t *
diff --git a/test/reference/record-neg-extents-bounded.ref.png b/test/reference/record-neg-extents-bounded.ref.png
new file mode 100644
index 000000000..6d29da199
--- /dev/null
+++ b/test/reference/record-neg-extents-bounded.ref.png
Binary files differ