summaryrefslogtreecommitdiff
path: root/riscos/print.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-12-23 21:49:13 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-12-23 21:49:13 +0000
commit905df166b0e7ac683d26710ee6192604bd1a2328 (patch)
treee8e715022832c21e24a068165b3f84ee42512751 /riscos/print.c
parent081217a321fd6cee427ac4d3f012b2a5d959cf13 (diff)
downloadnetsurf-905df166b0e7ac683d26710ee6192604bd1a2328.tar.gz
netsurf-905df166b0e7ac683d26710ee6192604bd1a2328.tar.bz2
Make the RISC OS front end foreground/background menu options work.
svn path=/trunk/netsurf/; revision=13333
Diffstat (limited to 'riscos/print.c')
-rw-r--r--riscos/print.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/riscos/print.c b/riscos/print.c
index d3573401a..e8c162fed 100644
--- a/riscos/print.c
+++ b/riscos/print.c
@@ -32,6 +32,7 @@
#include "utils/config.h"
#include "content/content.h"
#include "content/hlcache.h"
+#include "desktop/options.h"
#include "desktop/plotters.h"
#include "riscos/dialog.h"
#include "riscos/menus.h"
@@ -192,7 +193,7 @@ void ro_gui_print_prepare(struct gui_window *g)
printers_exists = false;
}
- print_bg_images = g->option.background_images;
+ print_bg_images = option_background_images;
ro_gui_set_icon_selected_state(dialog_print, ICON_PRINT_TO_BOTTOM,
true);
@@ -273,9 +274,8 @@ bool ro_gui_print_apply(wimp_w w)
print_max_sheets = sheets;
else
print_max_sheets = -1;
- ro_print_current_window->option.background_images =
- ro_gui_get_icon_selected_state(dialog_print,
- ICON_PRINT_BG_IMAGES);
+ option_background_images = ro_gui_get_icon_selected_state(dialog_print,
+ ICON_PRINT_BG_IMAGES);
print_send_printsave(ro_print_current_window->bw->current_content);
@@ -521,9 +521,7 @@ void ro_print_dataload_bounce(wimp_message *m)
void ro_print_cleanup(void)
{
- if (ro_print_current_window)
- ro_print_current_window->option.background_images =
- print_bg_images;
+ option_background_images = print_bg_images;
ro_print_current_window = NULL;
print_text_black = false;
print_prev_message = 0;