mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
all: don't put legend so far away from plane
This commit is contained in:
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…
x
Reference in New Issue
Block a user