mirror of
https://github.com/dankamongmen/notcurses
synced 2025-04-11 17:20:04 -04:00
xray: adapt to menu
This commit is contained in:
parent
328426c3e7
commit
d55f1b78d8
@ -36,8 +36,7 @@ perframecb(struct notcurses* nc, struct ncvisual* ncv __attribute__ ((unused)),
|
|||||||
if(n == NULL){
|
if(n == NULL){
|
||||||
struct ncplane* nstd = notcurses_stdplane(nc);
|
struct ncplane* nstd = notcurses_stdplane(nc);
|
||||||
ncplane_dim_yx(nstd, &dimy, &dimx);
|
ncplane_dim_yx(nstd, &dimy, &dimx);
|
||||||
//y = dimy - sizeof(leg) / sizeof(*leg) - 1;
|
y = dimy - sizeof(leg) / sizeof(*leg);
|
||||||
y = 1;
|
|
||||||
n = ncplane_new(nc, sizeof(leg) / sizeof(*leg), dimx, y, 0, NULL);
|
n = ncplane_new(nc, sizeof(leg) / sizeof(*leg), dimx, y, 0, NULL);
|
||||||
if(n == NULL){
|
if(n == NULL){
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user