summaryrefslogtreecommitdiffstats
path: root/sys/teken/teken_subr_compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/teken/teken_subr_compat.h')
-rw-r--r--sys/teken/teken_subr_compat.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/teken/teken_subr_compat.h b/sys/teken/teken_subr_compat.h
index 088f378..e937298 100644
--- a/sys/teken/teken_subr_compat.h
+++ b/sys/teken/teken_subr_compat.h
@@ -65,10 +65,10 @@ void
teken_get_defattr_cons25(teken_t *t, int *fg, int *bg)
{
- *fg = cons25_revcolors[t->t_defattr.ta_fgcolor];
+ *fg = cons25_revcolors[teken_256to8(t->t_defattr.ta_fgcolor)];
if (t->t_defattr.ta_format & TF_BOLD)
*fg += 8;
- *bg = cons25_revcolors[t->t_defattr.ta_bgcolor];
+ *bg = cons25_revcolors[teken_256to8(t->t_defattr.ta_bgcolor)];
}
static void
OpenPOWER on IntegriCloud