diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-09-30 15:58:14 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-09-30 15:58:14 +0100 |
commit | 538fa0d6fbfe5f03b325e2dfb296538295f3b409 (patch) | |
tree | bf026f434a73e9aab71fc8b133e82755a0b45ae3 /util | |
parent | 719bef0c90b73850e373c70d627fa1f730be84a1 (diff) |
fill: Fix unantialiased rectilinear-fill-to-boxes
We were calling the antialias close function from the unantialiased
paths - a function that operates on a completely different structure to
the one passed in.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'util')
-rw-r--r-- | util/cairo-script/csi-exec.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/util/cairo-script/csi-exec.c b/util/cairo-script/csi-exec.c index 23e9c365..d30b1c9c 100644 --- a/util/cairo-script/csi-exec.c +++ b/util/cairo-script/csi-exec.c @@ -20,12 +20,22 @@ main (int argc, char **argv) .surface_create = _surface_create }; cairo_script_interpreter_t *csi; - int status; int i; - csi = cairo_script_interpreter_create (); - cairo_script_interpreter_install_hooks (csi, &hooks); - for (i = 1; i < argc; i++) + for (i = 1; i < argc; i++) { + int status, line; + + csi = cairo_script_interpreter_create (); + cairo_script_interpreter_install_hooks (csi, &hooks); cairo_script_interpreter_run (csi, argv[i]); - return cairo_script_interpreter_destroy (csi); + line = cairo_script_interpreter_get_line_number (csi); + status = cairo_script_interpreter_destroy (csi); + if (status) { + fprintf (stderr, "Error during replay of '%s', line %d: %d\n", + argv[i], line, status); + return 1; + } + } + + return 0; } |