view: legend visible on 80x24

pull/282/head
nick black 5 years ago committed by Nick Black
parent afcd265253
commit 785ef20937

@ -36,7 +36,7 @@ view_video_demo(struct notcurses* nc){
static struct ncplane*
legend(struct notcurses* nc, int dimy, int dimx){
struct ncplane* n = ncplane_new(nc, 4, 25, dimy * 7 / 8, (dimx - 25) / 2, NULL);
struct ncplane* n = ncplane_new(nc, 4, 25, dimy * 7 / 8 - 1, (dimx - 25) / 2, NULL);
ncplane_set_bg_alpha(n, CELL_ALPHA_TRANSPARENT);
uint64_t channels = 0;
channels_set_bg_alpha(&channels, CELL_ALPHA_TRANSPARENT);

Loading…
Cancel
Save