direct mode: don't scroll on image out due to overambitious sizing #1804

This commit is contained in:
nick black 2021-06-23 23:06:50 -04:00
parent 481d539092
commit 7b570ba813

View File

@ -586,7 +586,7 @@ ncdirect_render_visual(ncdirect* n, ncvisual* ncv,
if(vopts->scaling != NCSCALE_NONE && vopts->scaling != NCSCALE_NONE_HIRES){
if(bset->geom != NCBLIT_PIXEL){
dispcols = dimx * encoding_x_scale(&n->tcache, bset);
disprows = dimy * encoding_y_scale(&n->tcache, bset);
disprows = dimy * encoding_y_scale(&n->tcache, bset) - 1;
outy = disprows;
}else{
dispcols = dimx * n->tcache.cellpixx;