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

Bug 461: Ensure contrast when filling with spaces.

So that the cursor will be visible in the Linux console.

[ From commit c2ca46cb81 in ELinks
  0.12.GIT.  --KON ]
This commit is contained in:
Kalle Olavi Niemitalo 2007-05-20 19:23:33 +03:00 committed by Kalle Olavi Niemitalo
parent 8dbeec1c7e
commit b935fbc6ca

View File

@ -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);