reel: don't breech bottom border #1010

This commit is contained in:
nick black 2020-09-13 15:07:09 -04:00
parent 5fc9f7b367
commit b7dc102eb8
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -96,7 +96,7 @@ drawcb(struct nctablet* t, bool drawfromtop){
pthread_mutex_lock(&tctx->lock); pthread_mutex_lock(&tctx->lock);
unsigned rgb = tctx->rgb; unsigned rgb = tctx->rgb;
int ll; int ll;
int maxy = ncplane_dim_y(p) - 1; int maxy = ncplane_dim_y(p);
ll = tabletdraw(p, maxy, tctx, rgb); ll = tabletdraw(p, maxy, tctx, rgb);
ncplane_set_fg_rgb(p, 242, 242, 242); ncplane_set_fg_rgb(p, 242, 242, 242);
if(ll){ if(ll){