diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-01-18 22:43:24 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-01-22 23:01:50 +0000 |
commit | 49ab86772a44d7a044464d875324bd0af96af728 (patch) | |
tree | 35e9e19756623b23bba931e6614d88305f01d4b0 /test | |
parent | f617d5fc982f749d0981c81c1de1be8dc3632717 (diff) |
script: Port cairo_script_context_t to cairo_device_t
Use the unifying cairo_device_t for cairo_script_context_t and replace.
Diffstat (limited to 'test')
-rw-r--r-- | test/cairo-test-trace.c | 7 |
1 files changed, 4 insertions, 3 deletions
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); |