xray: adapt to menu

pull/344/head
nick black 4 years ago committed by Nick Black
parent 328426c3e7
commit d55f1b78d8

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

Loading…
Cancel
Save