From 6a982799a3024aa8163325925de0a2b1c005e05d Mon Sep 17 00:00:00 2001 From: nick black Date: Wed, 19 May 2021 20:05:42 -0400 Subject: [PATCH] respect leny/lenx in cell rendering #1661 --- src/lib/visual.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/visual.c b/src/lib/visual.c index 74f3d2f0d..db1f3b623 100644 --- a/src/lib/visual.c +++ b/src/lib/visual.c @@ -585,8 +585,8 @@ ncplane* ncvisual_render_cells(notcurses* nc, ncvisual* ncv, const struct blitse n = notcurses_stdplane(nc); } if(scaling == NCSCALE_NONE || scaling == NCSCALE_NONE_HIRES){ - dispcols = ncv->pixx; - disprows = ncv->pixy; + dispcols = lenx; + disprows = leny; }else{ ncplane_dim_yx(n, &disprows, &dispcols); dispcols *= encoding_x_scale(&nc->tcache, bset); @@ -622,8 +622,8 @@ ncplane* ncvisual_render_cells(notcurses* nc, ncvisual* ncv, const struct blitse placex = 0; }else{ if(scaling == NCSCALE_NONE || scaling == NCSCALE_NONE_HIRES){ - dispcols = ncv->pixx; - disprows = ncv->pixy; + dispcols = lenx; + disprows = leny; }else{ ncplane_dim_yx(n, &disprows, &dispcols); dispcols *= encoding_x_scale(&nc->tcache, bset); @@ -884,7 +884,7 @@ ncplane* ncvisual_render(notcurses* nc, ncvisual* ncv, const struct ncvisual_opt } if(bset->geom != NCBLIT_PIXEL){ n = ncvisual_render_cells(nc, ncv, bset, placey, placex, begy, begx, - leny, leny, n, scaling, + leny, lenx, n, scaling, vopts ? vopts->flags : 0, transcolor); }else{ n = ncvisual_render_pixels(nc, ncv, bset, placey, placex, begy, begx,