From b935fbc6caa70476b4fad1c79ba61436e1a82523 Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Sun, 20 May 2007 19:23:33 +0300 Subject: [PATCH] Bug 461: Ensure contrast when filling with spaces. So that the cursor will be visible in the Linux console. [ From commit c2ca46cb811936a28d1f7f5d78d84466e9e077a6 in ELinks 0.12.GIT. --KON ] --- src/document/html/renderer.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/document/html/renderer.c b/src/document/html/renderer.c index 6b7f2b859..f3bdcdd89 100644 --- a/src/document/html/renderer.c +++ b/src/document/html/renderer.c @@ -172,7 +172,8 @@ realloc_line(struct html_context *html_context, struct document *document, end->data = ' '; end->attr = 0; set_screen_char_color(end, par_format.bgcolor, 0x0, - 0, document->options.color_mode); + COLOR_ENSURE_CONTRAST, /* for bug 461 */ + document->options.color_mode); for (pos = &line->chars[line->length]; pos < end; pos++) { copy_screen_chars(pos, end, 1); @@ -250,7 +251,8 @@ clear_hchars(struct html_context *html_context, int x, int y, int width) end->data = ' '; end->attr = 0; set_screen_char_color(end, par_format.bgcolor, 0x0, - 0, part->document->options.color_mode); + COLOR_ENSURE_CONTRAST, /* for bug 461 */ + part->document->options.color_mode); while (pos < end) copy_screen_chars(pos++, end, 1);