all: don't put legend so far away from plane

This commit is contained in:
nick black 2020-06-08 01:31:42 -04:00
parent 4d2e4e82d3
commit 7736e4a7dc

View File

@ -75,14 +75,14 @@ int allglyphs_demo(struct notcurses* nc){
return -1;
}
}
struct ncplane* column = ncplane_aligned(n, height, width,
(dimy - height) / 2 + 1,
const int planey = (dimy - height) / 2 + 1;
struct ncplane* column = ncplane_aligned(n, height, width, planey,
NCALIGN_CENTER, NULL);
if(column == NULL){
return -1;
}
ncplane_set_scrolling(column, true);
int r = allglyphs(nc, column, 2);
int r = allglyphs(nc, column, planey - 2);
ncplane_destroy(column);
return r;
}