kitty: fix overactive green channel #1095

This commit is contained in:
nick black 2021-03-08 23:17:06 -05:00 committed by Nick Black
parent 3818f0b31f
commit 16d0b71162

View File

@ -38,7 +38,7 @@ write_kitty_data(FILE* fp, int linesize, int leny, int lenx, const uint32_t* dat
unsigned b = ncpixel_b(pixel);
unsigned char b64[4] = {
b64subs[((r & 0xfc) >> 2)],
b64subs[((r & 0x3 << 2) | ((g & 0xf0) >> 4))],
b64subs[((r & 0x3 << 4) | ((g & 0xf0) >> 4))],
b64subs[(((g & 0xf) << 2) | ((b & 0xc0) >> 6))],
b64subs[(b & 0x3f)]
};