xray: adapt to menu

This commit is contained in:
nick black 2020-02-09 06:12:56 -05:00 committed by Nick Black
parent 328426c3e7
commit d55f1b78d8

View File

@ -36,8 +36,7 @@ perframecb(struct notcurses* nc, struct ncvisual* ncv __attribute__ ((unused)),
if(n == NULL){
struct ncplane* nstd = notcurses_stdplane(nc);
ncplane_dim_yx(nstd, &dimy, &dimx);
//y = dimy - sizeof(leg) / sizeof(*leg) - 1;
y = 1;
y = dimy - sizeof(leg) / sizeof(*leg);
n = ncplane_new(nc, sizeof(leg) / sizeof(*leg), dimx, y, 0, NULL);
if(n == NULL){
return -1;