status = cairo_surface_status (surface);
if (status != CAIRO_STATUS_SUCCESS)
{
- error (0, 0, _("opening output file \"%s\": %s"),
+ error (0, 0, _("error opening output file \"%s\": %s"),
file_name, cairo_status_to_string (status));
cairo_surface_destroy (surface);
goto error;
#define CHART_HEIGHT 375
struct xr_driver *
-xr_create_driver (cairo_t *cairo)
+xr_create_driver (cairo_t *cairo, struct string_map *options)
{
- struct xr_driver *xr;
- struct string_map map;
-
- string_map_init (&map);
- xr = xr_allocate ("cairo", 0, &map);
- string_map_destroy (&map);
-
+ struct xr_driver *xr = xr_allocate ("cairo", 0, options);
xr->width = INT_MAX / 8;
xr->length = INT_MAX / 8;
if (!xr_set_cairo (xr, cairo))
status = cairo_surface_write_to_png (surface, file_name);
if (status != CAIRO_STATUS_SUCCESS)
- error (0, 0, _("writing output file \"%s\": %s"),
+ error (0, 0, _("error writing output file \"%s\": %s"),
file_name, cairo_status_to_string (status));
cairo_destroy (cr);