mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
kitty: fix overactive green channel #1095
This commit is contained in:
parent
3818f0b31f
commit
16d0b71162
@ -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)]
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user