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.
This commit is contained in:
Kalle Olavi Niemitalo 2007-05-20 19:23:33 +03:00 committed by Kalle Olavi Niemitalo
parent b0f507aba4
commit c2ca46cb81

View File

@ -175,7 +175,8 @@ realloc_line(struct html_context *html_context, struct document *document,
end->data = ' '; end->data = ' ';
end->attr = 0; end->attr = 0;
set_screen_char_color(end, par_format.bgcolor, 0x0, 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++) { for (pos = &line->chars[line->length]; pos < end; pos++) {
copy_screen_chars(pos, end, 1); 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->data = ' ';
end->attr = 0; end->attr = 0;
set_screen_char_color(end, par_format.bgcolor, 0x0, 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) while (pos < end)
copy_screen_chars(pos++, end, 1); copy_screen_chars(pos++, end, 1);