kitty_blit_inner: properly scale rows by celldimy

This commit is contained in:
nick black 2021-03-20 03:53:49 -04:00
parent dda2cca47f
commit 6998db1a91

View File

@ -121,7 +121,7 @@ write_kitty_data(FILE* fp, int linesize, int leny, int lenx,
// deflate-compressed) 24bit RGB.
int kitty_blit_inner(ncplane* nc, int linesize, int leny, int lenx,
const void* data, const blitterargs* bargs){
int rows = leny / bargs->pixel.celldimx + !!(leny % bargs->pixel.celldimx);
int rows = leny / bargs->pixel.celldimy + !!(leny % bargs->pixel.celldimy);
int cols = lenx / bargs->pixel.celldimx + !!(lenx % bargs->pixel.celldimx);
char* buf = NULL;
size_t size = 0;