Skip to content

Commit

Permalink
geomdata -> notcurses_blitters if it must be public
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Jun 1, 2020
1 parent c8e7ad6 commit 23001ab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/notcurses/notcurses.h
Original file line number Diff line number Diff line change
Expand Up @@ -2898,7 +2898,7 @@ struct blitset {
bool fill;
};

API extern const struct blitset geomdata[];
API extern const struct blitset notcurses_blitters[];

#undef API

Expand Down
2 changes: 1 addition & 1 deletion src/lib/blit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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" █",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/blitset.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 23001ab

Please sign in to comment.