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

Make get_bgcolor() use extract_color() instead of get_color().

It prevents a useless test, use_document_fg_colors() is
always true when use_document_bg_colors() is true.
This commit is contained in:
Laurent MONIN 2007-10-15 12:19:46 +02:00
parent b709061864
commit a1125df95f

View File

@ -82,7 +82,7 @@ get_bgcolor(struct html_context *html_context, unsigned char *a, color_T *rgb)
if (!use_document_bg_colors(html_context->options))
return -1;
return get_color(html_context, a, "bgcolor", rgb);
return extract_color(html_context, a, "bgcolor", rgb);
}
unsigned char *