[kitty] fix off-by-one in write_kitty_data(), ugh

pull/1485/head
nick black 4 years ago
parent 913f06d59c
commit 322e4f4b3b
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -265,9 +265,10 @@ write_kitty_data(FILE* fp, int linesize, int leny, int lenx, int cols,
const uint32_t* line = data + (linesize / sizeof(*data)) * y;
source[e] = line[x];
//fprintf(stderr, "%u/%u/%u -> %c%c%c%c %u %u %u %u\n", r, g, b, b64[0], b64[1], b64[2], b64[3], b64[0], b64[1], b64[2], b64[3]);
++x;
int tyx = (x / cdimx) + (y / cdimy) * cols;
//fprintf(stderr, "Tyx: %d y: %d (%d) * %d x: %d (%d)\n", tyx, y, y / cdimy, cols, x, x / cdimx);
wipe[e] = (tacache[tyx] == SPRIXCELL_ANNIHILATED);
++x;
}
totalout += encodeable;
char out[17];

Loading…
Cancel
Save