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

pull/690/head
nick black 4 years ago
parent 4d2e4e82d3
commit 7736e4a7dc

@ -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;
}

Loading…
Cancel
Save