diff --git a/src/tty/color-slang.c b/src/tty/color-slang.c index fa3c00212..3767fc7f9 100644 --- a/src/tty/color-slang.c +++ b/src/tty/color-slang.c @@ -142,17 +142,7 @@ tty_color_try_alloc_pair_lib (tty_color_pair_t * mc_color_pair) void tty_setcolor (int color) { - if (!SLtt_Use_Ansi_Colors) - SLsmg_set_color (color); - else if ((color & A_BOLD) != 0) { - if (color == A_BOLD) - SLsmg_set_color (A_BOLD); - else - SLsmg_set_color ((color & (~A_BOLD)) + 8); - } else if (color == A_REVERSE) - SLsmg_set_color (A_REVERSE); - else - SLsmg_set_color (color); + SLsmg_set_color (color); } /* Set colorpair by index, don't interpret S-Lang "emulated attributes" */ diff --git a/src/tty/color-slang.h b/src/tty/color-slang.h index 371c29d3b..7b47d11df 100644 --- a/src/tty/color-slang.h +++ b/src/tty/color-slang.h @@ -22,13 +22,9 @@ enum { /* When using Slang with color, we have all the indexes free but * those defined here (A_BOLD, A_UNDERLINE, A_REVERSE, A_BOLD_REVERSE) */ -#define A_BOLD 0x40 -#define A_UNDERLINE 0x40 -#define A_REVERSE 0x20 -#define A_BOLD_REVERSE 0x21 -#ifndef A_NORMAL -# define A_NORMAL 0x00 -#endif +#ifndef A_BOLD +#define A_BOLD SLTT_BOLD_MASK +#endif /* A_BOLD */ #endif /* MC_COLOR_SLANG_H */