From bc7b58c5dfb2044e5b20f348d635385faf596174 Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 17 May 2020 05:36:07 -0400 Subject: [PATCH] ncvisual_from_plane(): apply vertical scaling --- src/lib/visual.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/visual.cpp b/src/lib/visual.cpp index 90ce2a777..f275e7b21 100644 --- a/src/lib/visual.cpp +++ b/src/lib/visual.cpp @@ -501,6 +501,7 @@ auto ncvisual_from_plane(const ncplane* n, int begy, int begx, int leny, int len if(leny == -1){ 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); if(ncv == nullptr){ free(rgba);