diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2004-08-15 19:06:24 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2004-08-15 19:06:24 +0000 |
commit | 006344401cfaedda64387fd59c1626b71cb178d6 (patch) | |
tree | 56480bd73e57dda657c30a37596af6b2f9058484 /riscos/print.c | |
parent | f36a8d6ba8ccccd9ebdd895451a54408040bf01a (diff) | |
download | netsurf-006344401cfaedda64387fd59c1626b71cb178d6.tar.gz netsurf-006344401cfaedda64387fd59c1626b71cb178d6.tar.bz2 |
[project @ 2004-08-15 19:06:23 by jmb]
Rationalise image redraw.
Supply background colour when redrawing contents
Reenable printing of background images
Require Tinct 0.07
svn path=/import/netsurf/; revision=1234
Diffstat (limited to 'riscos/print.c')
-rw-r--r-- | riscos/print.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/riscos/print.c b/riscos/print.c index ddb92963d..8cb35c319 100644 --- a/riscos/print.c +++ b/riscos/print.c @@ -27,11 +27,7 @@ #include "netsurf/utils/log.h" #include "netsurf/utils/utils.h" -/** \todo position images correctly (seem to be offset - * to the right and upwards by half the print margin width) - * \todo fix images when printing with the PostScript driver - * (redraws appear not to be intercepted) - * \todo landscape format pages +/** \todo landscape format pages * \todo be somewhat more intelligent and try not to crop pages * half way up a line of text * \todo make use of print stylesheets @@ -104,9 +100,7 @@ void ro_gui_print_open(struct gui_window *g, int x, int y, bool sub_menu, bool k ro_gui_set_icon_selected_state(dialog_print, ICON_PRINT_FG_IMAGES, true); ro_gui_set_icon_shaded_state(dialog_print, ICON_PRINT_FG_IMAGES, true); - ro_gui_set_icon_selected_state(dialog_print, ICON_PRINT_BG_IMAGES, false/*print_bg_images*/); - ro_gui_set_icon_shaded_state(dialog_print, ICON_PRINT_BG_IMAGES, true); - + ro_gui_set_icon_selected_state(dialog_print, ICON_PRINT_BG_IMAGES, print_bg_images); ro_gui_set_icon_selected_state(dialog_print, ICON_PRINT_IN_BACKGROUND, false); @@ -119,6 +113,7 @@ void ro_gui_print_open(struct gui_window *g, int x, int y, bool sub_menu, bool k ro_gui_set_icon_shaded_state(dialog_print, ICON_PRINT_PRINT, true); } else { + ro_gui_set_icon_shaded_state(dialog_print, ICON_PRINT_PRINT, false); ro_gui_set_window_title(dialog_print, pdName); } @@ -637,7 +632,7 @@ void print_document(struct gui_window *g, const char *filename) c->width * 2, c->height * 2, b.x0, b.y0, b.x1-1, b.y1-1, - print_scale)) { + print_scale, 0xFFFFFF)) { ro_gui_current_redraw_gui = NULL; goto error; } |