account for tabletmasks

pull/173/head
nick black 5 years ago
parent 5459b4a8a7
commit 1a949a5a81
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -285,7 +285,11 @@ panelreel_draw_tablet(const panelreel* pr, tablet* t, int frontiery,
// t, ll, cby, cbmaxy, leny, direction); // t, ll, cby, cbmaxy, leny, direction);
if(ll != leny){ if(ll != leny){
if(ll == leny - 1){ // only has one border visible (partially off-screen) if(ll == leny - 1){ // only has one border visible (partially off-screen)
++ll; // account for that border if(cbdir){
ll += !(pr->popts.tabletmask & NCBOXMASK_BOTTOM);
}else{
ll += !(pr->popts.tabletmask & NCBOXMASK_TOP);
}
wresize(fp, ll, lenx); wresize(fp, ll, lenx);
if(direction < 0){ if(direction < 0){
cliphead = true; cliphead = true;

Loading…
Cancel
Save