[util] Disable chafa's truecolor mode

See https://github.com/harfbuzz/harfbuzz/pull/2959#issuecomment-827056111
pull/2960/head
Behdad Esfahbod 4 years ago
parent c571a96eb0
commit 42bf8e3d49
  1. 4
      util/helper-cairo-ansi.cc

@ -63,8 +63,8 @@ chafa_print_image_rgb24 (const void *data, int width, int height, int stride)
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))

Loading…
Cancel
Save