mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
visual_render_pixels: don't use last line of visual area #1479
This commit is contained in:
parent
f5d16e1e89
commit
11f79dfd31
@ -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…
x
Reference in New Issue
Block a user