|
|
@ -585,8 +585,8 @@ ncplane* ncvisual_render_cells(notcurses* nc, ncvisual* ncv, const struct blitse
|
|
|
|
n = notcurses_stdplane(nc);
|
|
|
|
n = notcurses_stdplane(nc);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(scaling == NCSCALE_NONE || scaling == NCSCALE_NONE_HIRES){
|
|
|
|
if(scaling == NCSCALE_NONE || scaling == NCSCALE_NONE_HIRES){
|
|
|
|
dispcols = ncv->pixx;
|
|
|
|
dispcols = lenx;
|
|
|
|
disprows = ncv->pixy;
|
|
|
|
disprows = leny;
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
ncplane_dim_yx(n, &disprows, &dispcols);
|
|
|
|
ncplane_dim_yx(n, &disprows, &dispcols);
|
|
|
|
dispcols *= encoding_x_scale(&nc->tcache, bset);
|
|
|
|
dispcols *= encoding_x_scale(&nc->tcache, bset);
|
|
|
@ -622,8 +622,8 @@ ncplane* ncvisual_render_cells(notcurses* nc, ncvisual* ncv, const struct blitse
|
|
|
|
placex = 0;
|
|
|
|
placex = 0;
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
if(scaling == NCSCALE_NONE || scaling == NCSCALE_NONE_HIRES){
|
|
|
|
if(scaling == NCSCALE_NONE || scaling == NCSCALE_NONE_HIRES){
|
|
|
|
dispcols = ncv->pixx;
|
|
|
|
dispcols = lenx;
|
|
|
|
disprows = ncv->pixy;
|
|
|
|
disprows = leny;
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
ncplane_dim_yx(n, &disprows, &dispcols);
|
|
|
|
ncplane_dim_yx(n, &disprows, &dispcols);
|
|
|
|
dispcols *= encoding_x_scale(&nc->tcache, bset);
|
|
|
|
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){
|
|
|
|
if(bset->geom != NCBLIT_PIXEL){
|
|
|
|
n = ncvisual_render_cells(nc, ncv, bset, placey, placex, begy, begx,
|
|
|
|
n = ncvisual_render_cells(nc, ncv, bset, placey, placex, begy, begx,
|
|
|
|
leny, leny, n, scaling,
|
|
|
|
leny, lenx, n, scaling,
|
|
|
|
vopts ? vopts->flags : 0, transcolor);
|
|
|
|
vopts ? vopts->flags : 0, transcolor);
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
n = ncvisual_render_pixels(nc, ncv, bset, placey, placex, begy, begx,
|
|
|
|
n = ncvisual_render_pixels(nc, ncv, bset, placey, placex, begy, begx,
|
|
|
|