1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-28 01:35:32 +00:00

Note about efficiency. I know that normal 16 color mode is broken (menu).

Maybe someone knows how to fix it.
This commit is contained in:
Witold Filipczyk 2006-08-19 23:57:50 +02:00 committed by Witold Filipczyk
parent 4f78b0dda1
commit 13dc5f01ea

View File

@ -431,6 +431,9 @@ struct screen_state {
#endif
};
/* FIXME: This is inefficient. When CONFIG_TRUE_COLOR is defined even in 16 color mode
* all 6 bytes are copied or compared. */
#if defined(CONFIG_TRUE_COLOR)
#define compare_color(a, b) ((a)[0] == (b)[0] && (a)[1] == (b)[1] && (a)[2] == (b)[2] \
&& (a)[3] == (b)[3] && (a)[4] == (b)[4] && (a)[5] == (b)[5])