Skip to content

Commit

Permalink
set unused bit when writing bgr;15 with putdata()
Browse files Browse the repository at this point in the history
  • Loading branch information
Yay295 committed Apr 16, 2024
1 parent 20860bc commit e849b1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_imaging.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ getink(PyObject *color, Imaging im, char *ink) {
((((UINT16)g) << 2) & 0x03e0) +
((((UINT16)b) >> 3) & 0x001f);

ink[0] = (UINT8)v;
ink[0] = 0x80 | (UINT8)v;
ink[1] = (UINT8)(v >> 8);
ink[2] = ink[3] = 0;
return ink;
Expand Down

0 comments on commit e849b1d

Please sign in to comment.