geomdata -> notcurses_blitters if it must be public

pull/665/head
nick black 4 years ago
parent c8e7ad641c
commit 23001ab792
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -2898,7 +2898,7 @@ struct blitset {
bool fill;
};
API extern const struct blitset geomdata[];
API extern const struct blitset notcurses_blitters[];
#undef API

@ -299,7 +299,7 @@ braille_blit(ncplane* nc, int placey, int placex, int linesize,
// NCBLIT_DEFAULT is not included, as it has no defined properties. It ought
// be replaced with some real blitter implementation by the calling widget.
const struct blitset geomdata[] = {
const struct blitset notcurses_blitters[] = {
{ .geom = NCBLIT_8x1, .width = 1, .height = 8, .egcs = L" ▁▂▃▄▅▆▇█",
.blit = NULL, .fill = false, },
{ .geom = NCBLIT_1x1, .width = 1, .height = 1, .egcs = L"",

@ -13,7 +13,7 @@ lookup_blitset(const struct notcurses* nc, ncblitter_e setid, bool may_degrade)
return NULL;
}
}
const struct blitset* bset = geomdata;
const struct blitset* bset = notcurses_blitters;
while(bset->egcs){
if(bset->geom == setid){
return bset;

Loading…
Cancel
Save