mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Added brackets
This commit is contained in:
parent
27d6fc7bc5
commit
76e5bd0f0f
|
@ -698,12 +698,13 @@ i2hsv(UINT8* out, const UINT8* in_, int xsize)
|
|||
for (x = 0; x < xsize; x++, in++, out+=4) {
|
||||
out[0] = 0;
|
||||
out[1] = 0;
|
||||
if (*in <= 0)
|
||||
if (*in <= 0) {
|
||||
out[2] = 0;
|
||||
else if (*in >= 255)
|
||||
} else if (*in >= 255) {
|
||||
out[2] = 255;
|
||||
else
|
||||
} else {
|
||||
out[2] = (UINT8) *in;
|
||||
}
|
||||
out[3] = 255;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user