Added brackets

This commit is contained in:
Andrew Murray 2019-09-06 20:07:23 +10:00
parent 27d6fc7bc5
commit 76e5bd0f0f

View File

@ -698,12 +698,13 @@ i2hsv(UINT8* out, const UINT8* in_, int xsize)
for (x = 0; x < xsize; x++, in++, out+=4) { for (x = 0; x < xsize; x++, in++, out+=4) {
out[0] = 0; out[0] = 0;
out[1] = 0; out[1] = 0;
if (*in <= 0) if (*in <= 0) {
out[2] = 0; out[2] = 0;
else if (*in >= 255) } else if (*in >= 255) {
out[2] = 255; out[2] = 255;
else } else {
out[2] = (UINT8) *in; out[2] = (UINT8) *in;
}
out[3] = 255; out[3] = 255;
} }
} }