mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Similar code as in original ELinks.
Still issues with displaying freshcode.club on konsole.
This commit is contained in:
parent
d1ddf27332
commit
0420ce5cc9
@ -1304,21 +1304,26 @@ add_char_true(struct string *screen, struct screen_driver *driver,
|
|||||||
if (is_last_line && x == xmax) \
|
if (is_last_line && x == xmax) \
|
||||||
break; \
|
break; \
|
||||||
\
|
\
|
||||||
if (!compare_bg_color(pos->c.color, current->c.color) \
|
if (compare_bg_color(pos->c.color, current->c.color)) { \
|
||||||
|| !compare_fg_color(pos->c.color, current->c.color) \
|
/* No update for exact match. */ \
|
||||||
|| (pos->attr != current->attr)) { \
|
if (compare_fg_color(pos->c.color, current->c.color)\
|
||||||
dirty = 1; \
|
&& pos->data == current->data \
|
||||||
break; \
|
&& pos->attr == current->attr) \
|
||||||
} \
|
continue; \
|
||||||
if (((pos->data > ' ') || (current->data > ' ')) \
|
\
|
||||||
&& (pos->data != current->data)) { \
|
/* Else if the color match and the data is
|
||||||
dirty = 1; \
|
* ``space''. */ \
|
||||||
break; \
|
if (pos->data <= ' ' && current->data <= ' ' \
|
||||||
|
&& pos->attr == current->attr) \
|
||||||
|
continue; \
|
||||||
} \
|
} \
|
||||||
|
dirty = 1; \
|
||||||
|
break; \
|
||||||
} \
|
} \
|
||||||
\
|
\
|
||||||
if (!dirty) \
|
if (!dirty) { \
|
||||||
continue; \
|
continue; \
|
||||||
|
} \
|
||||||
add_cursor_move_to_string(image_, y + 1, 1); \
|
add_cursor_move_to_string(image_, y + 1, 1); \
|
||||||
for (pos = start_of_line, x = 0; x <= xmax; x++, pos++) { \
|
for (pos = start_of_line, x = 0; x <= xmax; x++, pos++) { \
|
||||||
ADD_CHAR(image_, driver_, pos, state_); \
|
ADD_CHAR(image_, driver_, pos, state_); \
|
||||||
|
Loading…
Reference in New Issue
Block a user