From 49ab86772a44d7a044464d875324bd0af96af728 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 18 Jan 2010 22:43:24 +0000 Subject: script: Port cairo_script_context_t to cairo_device_t Use the unifying cairo_device_t for cairo_script_context_t and replace. --- test/cairo-test-trace.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/cairo-test-trace.c b/test/cairo-test-trace.c index b7cae200..ed81eb29 100644 --- a/test/cairo-test-trace.c +++ b/test/cairo-test-trace.c @@ -864,17 +864,18 @@ static void write_trace (const char *trace, struct slave *slave) { #if CAIRO_HAS_SCRIPT_SURFACE - cairo_script_context_t *ctx; + cairo_device_t *ctx, cairo_surface_t *script; char *filename; cairo_t *cr; xasprintf (&filename, "%s-fail.trace", trace); - ctx = cairo_script_context_create (filename); + ctx = cairo_script_create (filename); script = cairo_script_surface_create (ctx, + cairo_surface_get_content (slave->image), slave->width, slave->height); - cairo_script_context_destroy (ctx); + cairo_device_destroy (ctx); free (filename); cr = cairo_create (slave->image); -- cgit v1.2.3