diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-01-26 20:23:38 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-01-26 20:23:38 +0000 |
commit | de3651848e26765c82e47c5a4d43ca54486c0462 (patch) | |
tree | 47d4bf186f063879a2faabbb8aafaa5d0a4ae931 /csi-trace.c | |
parent | 23e553e8b89af7a3cb62396e85d10aea8957e4c8 (diff) |
csi-trace: Update to latest cairo-script api.
Diffstat (limited to 'csi-trace.c')
-rw-r--r-- | csi-trace.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/csi-trace.c b/csi-trace.c index 71c76af..ea4f1e9 100644 --- a/csi-trace.c +++ b/csi-trace.c @@ -24,7 +24,8 @@ format_from_content (cairo_content_t content) static cairo_surface_t * _script_surface_create (void *closure, cairo_content_t content, - double width, double height) + double width, double height, + long uid) { cairo_surface_t *surface, *image; cairo_rectangle_t extents; @@ -61,7 +62,7 @@ int main (int argc, char **argv) { const cairo_script_interpreter_hooks_t hooks = { - .closure = cairo_script_context_create_for_stream (write, stdout), + .closure = cairo_script_create_for_stream (write, stdout), .surface_create = _script_surface_create, .context_create = _script_context_create, }; @@ -90,6 +91,6 @@ main (int argc, char **argv) cairo_script_interpreter_install_hooks (csi, &hooks); if (setjmp (jmp) == 0) cairo_script_interpreter_feed_stream (csi, stdin); - cairo_script_context_destroy (hooks.closure); + cairo_device_destroy (hooks.closure); return cairo_script_interpreter_destroy (csi); } |