Skip to content

Commit

Permalink
ncplane_as_rgba: add egcs for 3x2 case #1490
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Jun 1, 2021
1 parent 8a84acf commit 61b4e05
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/lib/blit.c
Original file line number Diff line number Diff line change
Expand Up @@ -853,9 +853,7 @@ braille_blit(ncplane* nc, int linesize, const void* data,
// The order of contents is critical for 'egcs': ncplane_as_rgba() uses these
// arrays to map cells to source pixels. Map the upper-left logical bit to
// 1, and increase to the right, followed by down. The first egc ought thus
// always be space, to indicate an empty cell (all zeroes). The last ought
// always be the full block █ (note that this will be rendered as a space, so
// it's safe to use even in the NCBLIT_1x1 ASCII case).
// always be space, to indicate an empty cell (all zeroes).
static struct blitset notcurses_blitters[] = {
{ .geom = NCBLIT_8x1, .width = 1, .height = 8,
.egcs = NULL, .plotegcs = L" ▁▂▃▄▅▆▇█",
Expand All @@ -870,7 +868,8 @@ static struct blitset notcurses_blitters[] = {
.egcs = L" ▘▝▀▖▌▞▛▗▚▐▜▄▙▟█", .plotegcs = L" ▗▐▖▄▟▌▙█",
.blit = quadrant_blit, .name = "quad", .fill = false, },
{ .geom = NCBLIT_3x2, .width = 2, .height = 3,
.egcs = NULL, .plotegcs = L" 🬞🬦▐🬏🬭🬵🬷🬓🬱🬹🬻▌🬲🬺█", // FIXME
.egcs = L" 🬀🬁🬃🬇🬏🬞🬂🬄🬈🬐🬟🬅🬉🬑🬠🬋🬓🬢🬖🬦🬭🬆🬊🬒🬡🬌▌🬣🬗🬧🬍",
.plotegcs = L" 🬞🬦▐🬏🬭🬵🬷🬓🬱🬹🬻▌🬲🬺█",
.blit = sextant_blit, .name = "sex", .fill = false, },
{ .geom = NCBLIT_4x1, .width = 1, .height = 4,
.egcs = NULL, .plotegcs = L" ▂▄▆█",
Expand Down

0 comments on commit 61b4e05

Please sign in to comment.