1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Fix compilation using --enable-html-highlight.

It was broken by commit 09cf904814.
Reported by witekfl.
This commit is contained in:
Laurent MONIN 2007-09-17 10:54:52 +02:00
parent b389d1b20e
commit 7b6cb249ed

View File

@ -115,8 +115,8 @@ init_dom_renderer(struct dom_renderer *renderer, struct document *document,
for (type = 0; type < DOM_NODES; type++) {
struct screen_char *template = &renderer->styles[type];
color_T background = document->options.default_bg;
color_T foreground = document->options.default_fg;
color_T background = document->options.default_style.bg;
color_T foreground = document->options.default_style.fg;
enum screen_char_attr attr = 0;
static int i_want_struct_module_for_dom;
@ -418,7 +418,7 @@ add_dom_link(struct dom_renderer *renderer, unsigned char *string, int length,
link->npoints = length;
link->type = LINK_HYPERTEXT;
link->where = where;
link->color.background = document->options.default_bg;
link->color.background = document->options.default_style.bg;
link->color.foreground = fgcolor;
link->number = document->nlinks;