summaryrefslogtreecommitdiff
path: root/src/palette.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/palette.h')
-rw-r--r--src/palette.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/palette.h b/src/palette.h
index 5eef03e..f60e41e 100644
--- a/src/palette.h
+++ b/src/palette.h
@@ -28,7 +28,7 @@ void term_palette_reset_all(struct palette *p);
static inline uint32_t palette_resolve(const struct palette *p, term_color c)
{
- return term_color_is_slot(c) ? p->colors[c & 0x1FFu] : c;
+ return term_color_is_slot(c) ? p->colors[c & TERM_COLOR_SLOT_INDEX] : c;
}
#endif