From 1490b52a6b96b6a69a0c4fe9e0515dc717425128 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 22 Mar 2012 09:34:34 +0000 Subject: NetSurf options rework (a=vince r=daniels,jmb) svn path=/trunk/netsurf/; revision=13548 --- desktop/print.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'desktop/print.c') diff --git a/desktop/print.c b/desktop/print.c index ae0992ac0..4b8092b6f 100644 --- a/desktop/print.c +++ b/desktop/print.c @@ -126,7 +126,7 @@ bool print_draw_next_page(const struct printer *printer, struct content_redraw_data data; struct redraw_context ctx = { .interactive = false, - .background_images = !option_remove_backgrounds, + .background_images = !nsoption_bool(remove_backgrounds), .plot = printer->plotter }; @@ -288,18 +288,18 @@ struct print_settings *print_make_settings(print_configuration configuration, settings->page_height = DEFAULT_PAGE_HEIGHT; settings->copies = DEFAULT_COPIES; - settings->scale = (float)option_export_scale / 100; + settings->scale = (float)nsoption_int(export_scale) / 100; - length = INTTOFIX(option_margin_left); + length = INTTOFIX(nsoption_int(margin_left)); settings->margins[MARGINLEFT] = nscss_len2px(length, unit, NULL); - length = INTTOFIX(option_margin_right); + length = INTTOFIX(nsoption_int(margin_right)); settings->margins[MARGINRIGHT] = nscss_len2px(length, unit, NULL); - length = INTTOFIX(option_margin_top); + length = INTTOFIX(nsoption_int(margin_top)); settings->margins[MARGINTOP] = nscss_len2px(length, unit, NULL); - length = INTTOFIX(option_margin_bottom); + length = INTTOFIX(nsoption_int(margin_bottom)); settings->margins[MARGINBOTTOM] = nscss_len2px(length, unit, NULL); break; -- cgit v1.2.3