mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05: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:
parent
4f78b0dda1
commit
13dc5f01ea
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user