diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2004-08-19 01:01:31 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2004-08-19 01:01:31 +0000 |
commit | 5611d2c739df0b56a9fedaf5f89f5e1af86df949 (patch) | |
tree | db60c2d0ef6125a8aa25a0a25e14520ed5b6d989 /riscos/htmlredraw.c | |
parent | c7fab5b727863a54ef1bc5b30ba9ac805bbaaec0 (diff) | |
download | netsurf-5611d2c739df0b56a9fedaf5f89f5e1af86df949.tar.gz netsurf-5611d2c739df0b56a9fedaf5f89f5e1af86df949.tar.bz2 |
[project @ 2004-08-19 01:01:31 by jmb]
Add option to force text colour to black when printing
svn path=/import/netsurf/; revision=1245
Diffstat (limited to 'riscos/htmlredraw.c')
-rw-r--r-- | riscos/htmlredraw.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/riscos/htmlredraw.c b/riscos/htmlredraw.c index 089378282..592398131 100644 --- a/riscos/htmlredraw.c +++ b/riscos/htmlredraw.c @@ -363,7 +363,9 @@ bool html_redraw_box(struct box *box, } else if (box->gadget && box->gadget->type == GADGET_FILE) { error = xcolourtrans_set_font_colours(box->font->handle, current_background_color << 8, - box->style->color << 8, 14, 0, 0, 0); + print_text_black ? os_COLOUR_BLACK : + box->style->color << 8, + 14, 0, 0, 0); if (error) { LOG(("xcolourtrans_set_font_colours: 0x%x: %s", error->errnum, error->errmess)); @@ -377,7 +379,9 @@ bool html_redraw_box(struct box *box, error = xcolourtrans_set_font_colours(box->font->handle, current_background_color << 8, - box->style->color << 8, 14, 0, 0, 0); + print_text_black ? os_COLOUR_BLACK : + box->style->color << 8, + 14, 0, 0, 0); if (error) { LOG(("xcolourtrans_set_font_colours: 0x%x: %s", error->errnum, error->errmess)); @@ -385,7 +389,7 @@ bool html_redraw_box(struct box *box, } /* antialias colour for under/overline */ - colour = box->style->color; + colour = print_text_black ? os_COLOUR_BLACK : box->style->color; colour = ((((colour >> 16) + (current_background_color >> 16)) / 2) << 16) | (((((colour >> 8) & 0xff) + ((current_background_color >> 8) & 0xff)) / 2) << 8) |