visual_render_pixels: don't use last line of visual area #1479

pull/1535/head
nick black 3 years ago
parent f5d16e1e89
commit 11f79dfd31
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -601,6 +601,7 @@ ncplane* ncvisual_render_pixels(notcurses* nc, ncvisual* ncv, const struct blits
disprows = ncv->rows;
}else{
notcurses_term_dim_yx(nc, &disprows, &dispcols);
--disprows; // some terminals scroll when bitmaps hit the last line
dispcols *= nc->tcache.cellpixx;
disprows *= nc->tcache.cellpixy;
if(scaling == NCSCALE_SCALE || scaling == NCSCALE_SCALE_HIRES){

Loading…
Cancel
Save