From a96e7166634e7f2668b1d4761e4d7374ff1f78d9 Mon Sep 17 00:00:00 2001 From: nick black Date: Wed, 18 Dec 2019 15:05:05 -0500 Subject: [PATCH] panelreels: account for tablet masking --- src/lib/panelreel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/panelreel.c b/src/lib/panelreel.c index d093c0ab6..8c998d0b8 100644 --- a/src/lib/panelreel.c +++ b/src/lib/panelreel.c @@ -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){