mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
Fix compilation using --enable-html-highlight.
It was broken by commit 09cf904814f47cf178e4539acf9d422c9b33cf0f. Reported by witekfl.
This commit is contained in:
parent
b389d1b20e
commit
7b6cb249ed
@ -115,8 +115,8 @@ init_dom_renderer(struct dom_renderer *renderer, struct document *document,
|
|||||||
|
|
||||||
for (type = 0; type < DOM_NODES; type++) {
|
for (type = 0; type < DOM_NODES; type++) {
|
||||||
struct screen_char *template = &renderer->styles[type];
|
struct screen_char *template = &renderer->styles[type];
|
||||||
color_T background = document->options.default_bg;
|
color_T background = document->options.default_style.bg;
|
||||||
color_T foreground = document->options.default_fg;
|
color_T foreground = document->options.default_style.fg;
|
||||||
enum screen_char_attr attr = 0;
|
enum screen_char_attr attr = 0;
|
||||||
static int i_want_struct_module_for_dom;
|
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->npoints = length;
|
||||||
link->type = LINK_HYPERTEXT;
|
link->type = LINK_HYPERTEXT;
|
||||||
link->where = where;
|
link->where = where;
|
||||||
link->color.background = document->options.default_bg;
|
link->color.background = document->options.default_style.bg;
|
||||||
link->color.foreground = fgcolor;
|
link->color.foreground = fgcolor;
|
||||||
link->number = document->nlinks;
|
link->number = document->nlinks;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user