sixel_blit_inner: properly scale rows by celldimy

pull/1427/head
nick black 3 years ago
parent 6998db1a91
commit 2393548e38

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

Loading…
Cancel
Save