diff options
author | Thomas White <taw@physics.org> | 2011-04-20 11:36:14 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:24 +0100 |
commit | f1bacb9686a4b1d3a21f1c12d40ae08ac63041a6 (patch) | |
tree | 4ae0a3b0152bd6c2e3a7f96fbeb0507eab0f79b5 /src/render_hkl.c | |
parent | aa2f9deebed210e0e87a72125a6dcc3e45a42525 (diff) |
render_hkl: Be a bit more informative when writing the colour key
Diffstat (limited to 'src/render_hkl.c')
-rw-r--r-- | src/render_hkl.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/render_hkl.c b/src/render_hkl.c index 9ddfc3a2..cb47e680 100644 --- a/src/render_hkl.c +++ b/src/render_hkl.c @@ -34,6 +34,9 @@ #include "reflist-utils.h" +#define KEY_FILENAME "key.pdf" + + static void show_help(const char *s) { printf("Syntax: %s [options] <file.hkl>\n\n", s); @@ -433,7 +436,7 @@ static int render_key(int colscale, double scale_top) top = 1.0; } - surface = cairo_pdf_surface_create("key.pdf", wh, ht); + surface = cairo_pdf_surface_create(KEY_FILENAME, wh, ht); if ( cairo_surface_status(surface) != CAIRO_STATUS_SUCCESS ) { fprintf(stderr, "Couldn't create Cairo surface\n"); @@ -501,6 +504,8 @@ static int render_key(int colscale, double scale_top) cairo_surface_finish(surface); cairo_destroy(dctx); + STATUS("Colour key written to "KEY_FILENAME"\n"); + return 0; } |