move sixel support bit to tcache from notcurses #200

pull/1351/head
nick black 3 years ago
parent a95d3f6035
commit 9be2f138e3
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -282,6 +282,7 @@ typedef struct tinfo {
uint32_t bg_collides_default;
bool sextants; // do we have (good, vetted) Unicode 13 sextant support?
bool braille; // do we have Braille support? (linux console does not)
bool libsixel; // do we have Sixel support?
} tinfo;
typedef struct ncinputlayer {
@ -363,7 +364,6 @@ typedef struct notcurses {
int loglevel;
palette256 palette; // 256-indexed palette can be used instead of/with RGB
bool palette_damage[NCPALETTESIZE];
bool libsixel; // do we have Sixel support?
} notcurses;
#include "blitset.h"

@ -935,7 +935,6 @@ notcurses* notcurses_core_init(const notcurses_options* opts, FILE* outfp){
ret->lastframe = NULL;
ret->lfdimy = 0;
ret->lfdimx = 0;
ret->libsixel = false;
egcpool_init(&ret->pool);
if((ret->loglevel = opts->loglevel) > NCLOGLEVEL_TRACE || ret->loglevel < 0){
fprintf(stderr, "Invalid loglevel %d\n", ret->loglevel);
@ -2032,7 +2031,7 @@ bool notcurses_canchangecolor(const notcurses* nc){
}
bool notcurses_cansixel(const notcurses* nc){
return nc->libsixel;
return nc->tcache.libsixel;
}
palette256* palette256_new(notcurses* nc){

Loading…
Cancel
Save