mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
Set blue channel to 128 for BC5S
This commit is contained in:
parent
e57b08affd
commit
352bcaac74
Binary file not shown.
Before Width: | Height: | Size: 95 KiB After Width: | Height: | Size: 95 KiB |
|
@ -854,7 +854,7 @@ decode_bcn(
|
|||
int sign = strcmp(pixel_format, "BC5S") == 0 ? 1 : 0;
|
||||
while (bytes >= 16) {
|
||||
rgba col[16];
|
||||
memset(col, 0, 16 * sizeof(col[0]));
|
||||
memset(col, sign ? 128 : 0, 16 * sizeof(col[0]));
|
||||
decode_bc5_block(col, ptr, sign);
|
||||
put_block(im, state, (const char *)col, sizeof(col[0]), C);
|
||||
ptr += 16;
|
||||
|
|
Loading…
Reference in New Issue
Block a user