mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
move sixel support bit to tcache from notcurses #200
This commit is contained in:
parent
a95d3f6035
commit
9be2f138e3
@ -282,6 +282,7 @@ typedef struct tinfo {
|
|||||||
uint32_t bg_collides_default;
|
uint32_t bg_collides_default;
|
||||||
bool sextants; // do we have (good, vetted) Unicode 13 sextant support?
|
bool sextants; // do we have (good, vetted) Unicode 13 sextant support?
|
||||||
bool braille; // do we have Braille support? (linux console does not)
|
bool braille; // do we have Braille support? (linux console does not)
|
||||||
|
bool libsixel; // do we have Sixel support?
|
||||||
} tinfo;
|
} tinfo;
|
||||||
|
|
||||||
typedef struct ncinputlayer {
|
typedef struct ncinputlayer {
|
||||||
@ -363,7 +364,6 @@ typedef struct notcurses {
|
|||||||
int loglevel;
|
int loglevel;
|
||||||
palette256 palette; // 256-indexed palette can be used instead of/with RGB
|
palette256 palette; // 256-indexed palette can be used instead of/with RGB
|
||||||
bool palette_damage[NCPALETTESIZE];
|
bool palette_damage[NCPALETTESIZE];
|
||||||
bool libsixel; // do we have Sixel support?
|
|
||||||
} notcurses;
|
} notcurses;
|
||||||
|
|
||||||
#include "blitset.h"
|
#include "blitset.h"
|
||||||
|
@ -935,7 +935,6 @@ notcurses* notcurses_core_init(const notcurses_options* opts, FILE* outfp){
|
|||||||
ret->lastframe = NULL;
|
ret->lastframe = NULL;
|
||||||
ret->lfdimy = 0;
|
ret->lfdimy = 0;
|
||||||
ret->lfdimx = 0;
|
ret->lfdimx = 0;
|
||||||
ret->libsixel = false;
|
|
||||||
egcpool_init(&ret->pool);
|
egcpool_init(&ret->pool);
|
||||||
if((ret->loglevel = opts->loglevel) > NCLOGLEVEL_TRACE || ret->loglevel < 0){
|
if((ret->loglevel = opts->loglevel) > NCLOGLEVEL_TRACE || ret->loglevel < 0){
|
||||||
fprintf(stderr, "Invalid loglevel %d\n", ret->loglevel);
|
fprintf(stderr, "Invalid loglevel %d\n", ret->loglevel);
|
||||||
@ -2032,7 +2031,7 @@ bool notcurses_canchangecolor(const notcurses* nc){
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool notcurses_cansixel(const notcurses* nc){
|
bool notcurses_cansixel(const notcurses* nc){
|
||||||
return nc->libsixel;
|
return nc->tcache.libsixel;
|
||||||
}
|
}
|
||||||
|
|
||||||
palette256* palette256_new(notcurses* nc){
|
palette256* palette256_new(notcurses* nc){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user