mirror of
https://github.com/dankamongmen/notcurses
synced 2025-04-03 05:10:05 -04:00
trans: adapt to ncmenu #332
This commit is contained in:
parent
d55f1b78d8
commit
501fe166e4
@ -73,8 +73,8 @@ slideitslideit(struct notcurses* nc, struct ncplane* n, uint64_t deadline,
|
|||||||
xoff = dimx - nx - 1;
|
xoff = dimx - nx - 1;
|
||||||
*velx = -*velx;
|
*velx = -*velx;
|
||||||
}
|
}
|
||||||
if(yoff <= 0){
|
if(yoff <= 2){
|
||||||
yoff = 0;
|
yoff = 2;
|
||||||
*vely = -*vely;
|
*vely = -*vely;
|
||||||
}else if(yoff >= dimy - ny){
|
}else if(yoff >= dimy - ny){
|
||||||
yoff = dimy - ny - 1;
|
yoff = dimy - ny - 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user