From 70ca146033dd513b91468c53ff3f89d03b277f09 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 7 Jan 2023 15:48:57 -0700 Subject: [PATCH] [chafa] Re-enable truecolor mode See 42bf8e3d49 https://github.com/harfbuzz/harfbuzz/pull/2959#issuecomment-827056111 --- util/helper-cairo-ansi.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/helper-cairo-ansi.hh b/util/helper-cairo-ansi.hh index 8bdd1da24..eb428a727 100644 --- a/util/helper-cairo-ansi.hh +++ b/util/helper-cairo-ansi.hh @@ -70,8 +70,8 @@ chafa_print_image_rgb24 (const void *data, int width, int height, int stride, in pixel_mode = CHAFA_PIXEL_MODE_SIXELS; mode = CHAFA_CANVAS_MODE_TRUECOLOR; } -// else if (chafa_term_info_have_seq (term_info, CHAFA_TERM_SEQ_SET_COLOR_FGBG_DIRECT)) -// mode = CHAFA_CANVAS_MODE_TRUECOLOR; + else if (chafa_term_info_have_seq (term_info, CHAFA_TERM_SEQ_SET_COLOR_FGBG_DIRECT)) + mode = CHAFA_CANVAS_MODE_TRUECOLOR; else if (chafa_term_info_have_seq (term_info, CHAFA_TERM_SEQ_SET_COLOR_FGBG_256)) mode = CHAFA_CANVAS_MODE_INDEXED_240; else if (chafa_term_info_have_seq (term_info, CHAFA_TERM_SEQ_SET_COLOR_FGBG_16))