From c2ca46cb811936a28d1f7f5d78d84466e9e077a6 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. --- 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 12b0e64cd..3d9655e1c 100644 --- a/src/document/html/renderer.c +++ b/src/document/html/renderer.c @@ -175,7 +175,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); @@ -257,7 +258,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);