style cleanup: issues missed last commit
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
*
|
||||
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
|
||||
* All rights reserved.
|
||||
|
||||
*
|
||||
* The Original Code is: some of this file.
|
||||
*
|
||||
* ***** END GPL LICENSE BLOCK *****
|
||||
@@ -230,13 +230,17 @@ void rgb_to_hsv(float r, float g, float b, float *lh, float *ls, float *lv)
|
||||
rc = (cmax - r) / cdelta;
|
||||
gc = (cmax - g) / cdelta;
|
||||
bc = (cmax - b) / cdelta;
|
||||
if (r == cmax)
|
||||
|
||||
if (r == cmax) {
|
||||
h = bc - gc;
|
||||
else
|
||||
if (g == cmax)
|
||||
}
|
||||
else if (g == cmax) {
|
||||
h = 2.0f + rc - bc;
|
||||
else
|
||||
}
|
||||
else {
|
||||
h = 4.0f + gc - rc;
|
||||
}
|
||||
|
||||
h = h * 60.0f;
|
||||
if (h < 0.0f)
|
||||
h += 360.0f;
|
||||
|
@@ -17,7 +17,7 @@
|
||||
*
|
||||
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
|
||||
* All rights reserved.
|
||||
|
||||
*
|
||||
* The Original Code is: some of this file.
|
||||
*
|
||||
* ***** END GPL LICENSE BLOCK *****
|
||||
|
@@ -17,7 +17,7 @@
|
||||
*
|
||||
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
|
||||
* All rights reserved.
|
||||
|
||||
*
|
||||
* The Original Code is: some of this file.
|
||||
*
|
||||
* ***** END GPL LICENSE BLOCK *****
|
||||
|
@@ -17,7 +17,7 @@
|
||||
*
|
||||
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
|
||||
* All rights reserved.
|
||||
|
||||
*
|
||||
* The Original Code is: some of this file.
|
||||
*
|
||||
* ***** END GPL LICENSE BLOCK *****
|
||||
|
Reference in New Issue
Block a user