From 2393548e38bf43fe94751d741848e9bf15856a20 Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 20 Mar 2021 03:57:50 -0400 Subject: [PATCH] sixel_blit_inner: properly scale rows by celldimy --- src/lib/sixel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/sixel.c b/src/lib/sixel.c index e01e78db4..30390e349 100644 --- a/src/lib/sixel.c +++ b/src/lib/sixel.c @@ -394,7 +394,7 @@ int sixel_blit_inner(ncplane* nc, int leny, int lenx, sixeltable* stab, return -1; } unsigned cols = lenx / bargs->pixel.celldimx + !!(lenx % bargs->pixel.celldimx); - unsigned rows = leny / bargs->pixel.celldimy + !!(leny % bargs->pixel.celldimx); + unsigned rows = leny / bargs->pixel.celldimy + !!(leny % bargs->pixel.celldimy); if(plane_blit_sixel(nc, buf, size, rows, cols, bargs->pixel.sprixelid) < 0){ free(buf); return -1;