mirror of
https://github.com/rkd77/elinks.git
synced 2025-04-18 00:47:36 -04:00
[colors] config.h is usually included first
This commit is contained in:
parent
835dce933f
commit
17915976f5
@ -70,50 +70,50 @@ get_bfu_color16_node(unsigned int node_number)
|
|||||||
return &entry->c16;
|
return &entry->c16;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_88_COLORS
|
||||||
struct screen_char *
|
struct screen_char *
|
||||||
get_bfu_color88_node(unsigned int node_number)
|
get_bfu_color88_node(unsigned int node_number)
|
||||||
{
|
{
|
||||||
struct bfu_color_entry *entry = node_entries[node_number];
|
struct bfu_color_entry *entry = node_entries[node_number];
|
||||||
|
|
||||||
#ifdef CONFIG_88_COLORS
|
|
||||||
if (!entry->was_color88) {
|
if (!entry->was_color88) {
|
||||||
set_term_color(&entry->c88, &entry->colors, 0, COLOR_MODE_88);
|
set_term_color(&entry->c88, &entry->colors, 0, COLOR_MODE_88);
|
||||||
entry->was_color88 = 1;
|
entry->was_color88 = 1;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
return &entry->c88;
|
return &entry->c88;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_256_COLORS
|
||||||
struct screen_char *
|
struct screen_char *
|
||||||
get_bfu_color256_node(unsigned int node_number)
|
get_bfu_color256_node(unsigned int node_number)
|
||||||
{
|
{
|
||||||
struct bfu_color_entry *entry = node_entries[node_number];
|
struct bfu_color_entry *entry = node_entries[node_number];
|
||||||
|
|
||||||
#ifdef CONFIG_256_COLORS
|
|
||||||
if (!entry->was_color256) {
|
if (!entry->was_color256) {
|
||||||
set_term_color(&entry->c256, &entry->colors, 0, COLOR_MODE_256);
|
set_term_color(&entry->c256, &entry->colors, 0, COLOR_MODE_256);
|
||||||
entry->was_color256 = 1;
|
entry->was_color256 = 1;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
return &entry->c256;
|
return &entry->c256;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_TRUE_COLOR
|
||||||
struct screen_char *
|
struct screen_char *
|
||||||
get_bfu_true_color_node(unsigned int node_number)
|
get_bfu_true_color_node(unsigned int node_number)
|
||||||
{
|
{
|
||||||
struct bfu_color_entry *entry = node_entries[node_number];
|
struct bfu_color_entry *entry = node_entries[node_number];
|
||||||
|
|
||||||
#ifdef CONFIG_TRUE_COLOR
|
|
||||||
if (!entry->was_color24) {
|
if (!entry->was_color24) {
|
||||||
set_term_color(&entry->c24, &entry->colors, 0, COLOR_MODE_TRUE_COLOR);
|
set_term_color(&entry->c24, &entry->colors, 0, COLOR_MODE_TRUE_COLOR);
|
||||||
entry->was_color24 = 1;
|
entry->was_color24 = 1;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
return &entry->c24;
|
return &entry->c24;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
reset_bfu_node_number(unsigned int node_number)
|
reset_bfu_node_number(unsigned int node_number)
|
||||||
|
@ -30,9 +30,16 @@ unsigned int get_bfu_color_node(struct terminal *term, const char *stylename);
|
|||||||
|
|
||||||
struct screen_char *get_bfu_mono_node(unsigned int node_number);
|
struct screen_char *get_bfu_mono_node(unsigned int node_number);
|
||||||
struct screen_char *get_bfu_color16_node(unsigned int node_number);
|
struct screen_char *get_bfu_color16_node(unsigned int node_number);
|
||||||
|
|
||||||
|
#ifdef CONFIG_88_COLORS
|
||||||
struct screen_char *get_bfu_color88_node(unsigned int node_number);
|
struct screen_char *get_bfu_color88_node(unsigned int node_number);
|
||||||
|
#endif
|
||||||
|
#ifdef CONFIG_256_COLORS
|
||||||
struct screen_char *get_bfu_color256_node(unsigned int node_number);
|
struct screen_char *get_bfu_color256_node(unsigned int node_number);
|
||||||
|
#endif
|
||||||
|
#ifdef CONFIG_TRUE_COLOR
|
||||||
struct screen_char *get_bfu_true_color_node(unsigned int node_number);
|
struct screen_char *get_bfu_true_color_node(unsigned int node_number);
|
||||||
|
#endif
|
||||||
|
|
||||||
void reset_bfu_node_number(unsigned int node_number);
|
void reset_bfu_node_number(unsigned int node_number);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user