|
|
@ -16,6 +16,22 @@ lookup_blitset(const tinfo* tcache, ncblitter_e setid, bool may_degrade) {
|
|
|
|
return NULL;
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// without braille support, NCBLIT_BRAILLE decays to NCBLIT_3x2
|
|
|
|
|
|
|
|
if(!tcache->braille && setid == NCBLIT_BRAILLE){
|
|
|
|
|
|
|
|
if(may_degrade){
|
|
|
|
|
|
|
|
setid = NCBLIT_3x2;
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// without sextant support, NCBLIT_3x2 decays to NCBLIT_2x2
|
|
|
|
|
|
|
|
if(!tcache->sextants && setid == NCBLIT_3x2){
|
|
|
|
|
|
|
|
if(may_degrade){
|
|
|
|
|
|
|
|
setid = NCBLIT_2x2;
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
const struct blitset* bset = notcurses_blitters;
|
|
|
|
const struct blitset* bset = notcurses_blitters;
|
|
|
|
while(bset->egcs){
|
|
|
|
while(bset->egcs){
|
|
|
|
if(bset->geom == setid){
|
|
|
|
if(bset->geom == setid){
|
|
|
@ -75,4 +91,12 @@ rgba_blitter(const struct notcurses* nc, const struct ncvisual_options* opts) {
|
|
|
|
return rgba_blitter_low(&nc->tcache, scale, maydegrade, opts ? opts->blitter : NCBLIT_DEFAULT);
|
|
|
|
return rgba_blitter_low(&nc->tcache, scale, maydegrade, opts ? opts->blitter : NCBLIT_DEFAULT);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static inline ncblitter_e
|
|
|
|
|
|
|
|
ncplot_defblitter(const notcurses* nc){
|
|
|
|
|
|
|
|
if(notcurses_canutf8(nc)){
|
|
|
|
|
|
|
|
return NCBLIT_8x1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return NCBLIT_1x1;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|