panelreels: account for tablet masking

This commit is contained in:
nick black 2019-12-18 15:05:05 -05:00
parent 4a7409ebda
commit a96e716663
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -296,7 +296,8 @@ panelreel_draw_tablet(const panelreel* pr, tablet* t, int frontiery,
//fprintf(stderr, "RESIZED (-1) from %d to %d\n", leny, ll);
}
}else{ // both borders are visible
ll += 2; // account for both borders
ll += !(pr->popts.tabletmask & NCBOXMASK_BOTTOM) +
!(pr->popts.tabletmask & NCBOXMASK_TOP);
//fprintf(stderr, "RESIZING (-2) from %d to %d\n", leny, ll);
wresize(fp, ll, lenx);
if(direction < 0){