1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-27 02:56:18 -04:00

Cleaner code of checking if line is dirty.

This commit is contained in:
Witold Filipczyk 2017-11-23 15:53:52 +01:00
parent 2bd6ac3f08
commit d1ddf27332

View File

@ -1304,11 +1304,14 @@ add_char_true(struct string *screen, struct screen_driver *driver,
if (is_last_line && x == xmax) \
break; \
\
if (!compare_bg_color(pos->c.color, current->c.color) || \
!compare_fg_color(pos->c.color, current->c.color) || \
!(pos->attr == current->attr) || \
!(((pos->data > ' ') || (current->data > ' ')) \
&& (pos->data != current->data))) { \
if (!compare_bg_color(pos->c.color, current->c.color) \
|| !compare_fg_color(pos->c.color, current->c.color) \
|| (pos->attr != current->attr)) { \
dirty = 1; \
break; \
} \
if (((pos->data > ' ') || (current->data > ' ')) \
&& (pos->data != current->data)) { \
dirty = 1; \
break; \
} \