Skip to content

Commit

Permalink
kitty: fix overactive green channel #1095
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Mar 9, 2021
1 parent bbe8fd4 commit 23f8480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/kitty.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
};
Expand Down

0 comments on commit 23f8480

Please sign in to comment.