mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
ncvisual_from_plane(): apply vertical scaling
This commit is contained in:
parent
8ec5388448
commit
bc7b58c5df
@ -501,6 +501,7 @@ auto ncvisual_from_plane(const ncplane* n, int begy, int begx, int leny, int len
|
|||||||
if(leny == -1){
|
if(leny == -1){
|
||||||
leny = n->leny - begy;
|
leny = n->leny - begy;
|
||||||
}
|
}
|
||||||
|
leny *= 2; // FIXME needn't we use encoding_vert_scale() somehow?
|
||||||
auto* ncv = ncvisual_from_rgba(n->nc, rgba, leny, lenx * 4, lenx);
|
auto* ncv = ncvisual_from_rgba(n->nc, rgba, leny, lenx * 4, lenx);
|
||||||
if(ncv == nullptr){
|
if(ncv == nullptr){
|
||||||
free(rgba);
|
free(rgba);
|
||||||
|
Loading…
Reference in New Issue
Block a user