summaryrefslogtreecommitdiff
path: root/src/cairo-debug.c
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
commita736fd8699e0ebcdd98392acb8383ea414688caf (patch)
tree6504e48c57df95103f89d2f40ce4821500e07942 /src/cairo-debug.c
parent1e07ced66d26475e6631df9ffa2a15709104bd8f (diff)
downloadcairo-a736fd8699e0ebcdd98392acb8383ea414688caf.tar.gz
Fix PDF record-neg-extents test failure
Modify PDF surface to allow surface extents to have negative x, y. When emitting recording surfaces, set the surface extents to the recording extents.
Diffstat (limited to 'src/cairo-debug.c')
-rw-r--r--src/cairo-debug.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/cairo-debug.c b/src/cairo-debug.c
index 33d46aa3f..dbc9e2f2c 100644
--- a/src/cairo-debug.c
+++ b/src/cairo-debug.c
@@ -237,7 +237,7 @@ _print_close (void *closure)
}
void
-_cairo_debug_print_path (FILE *stream, cairo_path_fixed_t *path)
+_cairo_debug_print_path (FILE *stream, const cairo_path_fixed_t *path)
{
cairo_status_t status;
cairo_box_t box;
@@ -302,3 +302,12 @@ _cairo_debug_print_polygon (FILE *stream, cairo_polygon_t *polygon)
}
}
+
+void
+_cairo_debug_print_matrix (FILE *file, const cairo_matrix_t *matrix)
+{
+ fprintf (file, "[%g %g %g %g %g %g]\n",
+ matrix->xx, matrix->yx,
+ matrix->xy, matrix->yy,
+ matrix->x0, matrix->y0);
+}