mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Assign to unused layers as well, jtbs
This commit is contained in:
parent
95de0b6d05
commit
ca69de192b
|
@ -910,7 +910,7 @@ p2la(UINT8* out, const UINT8* in, int xsize, const UINT8* palette)
|
|||
/* FIXME: precalculate greyscale palette? */
|
||||
for (x = 0; x < xsize; x++, out+=4) {
|
||||
const UINT8* rgba = &palette[*in++ * 4];
|
||||
out[0] = L(rgba) / 1000;
|
||||
out[0] = out[1] = out[2] = L(rgba) / 1000;
|
||||
out[3] = rgba[3];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user