mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-06 03:20:26 +00:00
panelreels: account for tablet masking
This commit is contained in:
parent
4a7409ebda
commit
a96e716663
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user