style cleanup: issues missed last commit

This commit is contained in:
2012-03-25 15:56:17 +00:00
parent fffe342d87
commit 3f56ee3da7
7 changed files with 70 additions and 66 deletions

View File

@@ -17,7 +17,7 @@
* *
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
* All rights reserved. * All rights reserved.
*
* The Original Code is: some of this file. * The Original Code is: some of this file.
* *
* ***** END GPL LICENSE BLOCK ***** * ***** 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; rc = (cmax - r) / cdelta;
gc = (cmax - g) / cdelta; gc = (cmax - g) / cdelta;
bc = (cmax - b) / cdelta; bc = (cmax - b) / cdelta;
if (r == cmax)
if (r == cmax) {
h = bc - gc; h = bc - gc;
else }
if (g == cmax) else if (g == cmax) {
h = 2.0f + rc - bc; h = 2.0f + rc - bc;
else }
else {
h = 4.0f + gc - rc; h = 4.0f + gc - rc;
}
h = h * 60.0f; h = h * 60.0f;
if (h < 0.0f) if (h < 0.0f)
h += 360.0f; h += 360.0f;

View File

@@ -17,7 +17,7 @@
* *
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
* All rights reserved. * All rights reserved.
*
* The Original Code is: some of this file. * The Original Code is: some of this file.
* *
* ***** END GPL LICENSE BLOCK ***** * ***** END GPL LICENSE BLOCK *****

View File

@@ -17,7 +17,7 @@
* *
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
* All rights reserved. * All rights reserved.
*
* The Original Code is: some of this file. * The Original Code is: some of this file.
* *
* ***** END GPL LICENSE BLOCK ***** * ***** END GPL LICENSE BLOCK *****

View File

@@ -17,7 +17,7 @@
* *
* The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
* All rights reserved. * All rights reserved.
*
* The Original Code is: some of this file. * The Original Code is: some of this file.
* *
* ***** END GPL LICENSE BLOCK ***** * ***** END GPL LICENSE BLOCK *****