aboutsummaryrefslogtreecommitdiff
path: root/src/print.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2017-11-26 20:02:53 +0100
committerThomas White <taw@bitwiz.org.uk>2017-11-26 20:02:53 +0100
commit2bf28d3b9de3ae3af076c569ffaccb66e13857f1 (patch)
treedd2ef413583e63ea589019fe687b0b599059bd34 /src/print.c
parent86e80d221809201f4cab608c5312bce8c76618a8 (diff)
Use config file for image store pathname
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/print.c b/src/print.c
index e33bc39..0f3e7ff 100644
--- a/src/print.c
+++ b/src/print.c
@@ -51,8 +51,10 @@ struct print_stuff
/* When printing narrative */
int nar_line;
struct frame *top;
- ImageStore *is;
int start_paras[256];
+
+ ImageStore *is;
+ const char *storename;
};
@@ -188,7 +190,7 @@ static void begin_narrative_print(GtkPrintOperation *op, GtkPrintContext *ctx,
sc_callback_list_add_callback(cbl, "sthumb", create_thumbnail,
render_thumbnail, NULL, ps->p);
- ps->is = imagestore_new();
+ ps->is = imagestore_new(ps->storename);
if ( ps->p->stylesheet != NULL ) {
stylesheets[0] = ps->p->stylesheet;