diff --git a/src/colors.c b/src/colors.c
index 507be48cac88d547dce892a499c50874ccbd68c1..690b9f20dc529d442a195484dc3b7350f80d444f 100644 (file)
--- a/src/colors.c
+++ b/src/colors.c
} color_definition_entry_t;
typedef struct {
- int id;
+ enum color id;
const char *name;
short fg;
attr_t attrs;
static GList *color_definition_list = NULL;
static color_entry_t *
-colors_lookup(int id)
+colors_lookup(enum color id)
{
int i = 0;
}
static int
-colors_update_pair(int id)
+colors_update_pair(enum color id)
{
color_entry_t *entry = colors_lookup(id);
short fg = -1;
}
int
-colors_use(WINDOW *w, int id)
+colors_use(WINDOW *w, enum color id)
{
color_entry_t *entry = colors_lookup(id);
short pair;
if (options.enable_colors) {
/* color mode */
- if (attrs != entry->attrs || id != pair)
+ if (attrs != entry->attrs || (short)id != pair)
wattr_set(w, entry->attrs, id, NULL);
} else {
/* mono mode */