From edaa9c29f22a550ddc7c8e1f02ff6d9dedf9a5b1 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Mon, 13 Feb 2017 00:18:32 +0000 Subject: Remove use of global context data from Amiga frontend --- desktop/print.c | 3 ++- desktop/print.h | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'desktop') diff --git a/desktop/print.c b/desktop/print.c index e7c8cf2fa..37172b7c1 100644 --- a/desktop/print.c +++ b/desktop/print.c @@ -179,7 +179,8 @@ bool print_draw_next_page(const struct printer *printer, struct redraw_context ctx = { .interactive = false, .background_images = !nsoption_bool(remove_backgrounds), - .plot = printer->plotter + .plot = printer->plotter, + .priv = settings->priv }; html_redraw_printing_top_cropped = INT_MAX; diff --git a/desktop/print.h b/desktop/print.h index fb1fd63ac..c3cb79914 100644 --- a/desktop/print.h +++ b/desktop/print.h @@ -61,6 +61,9 @@ struct print_settings{ /*the functions used to measure fonts*/ const struct gui_layout_table *font_func; + + /* Private data for the plotter context */ + const void *priv; }; -- cgit v1.2.3