ncvisual_from_plane(): apply vertical scaling

This commit is contained in:
nick black 2020-05-17 05:36:07 -04:00
parent 8ec5388448
commit bc7b58c5df
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -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);