changed coding style
[mesa.git] / src / glut / dos / color.c
index cfb2ff926af443054ba500b33d56d6bcd595e223..c6033c2d561be1e1ad4bd8b9315be390abb07159 100644 (file)
@@ -21,7 +21,7 @@
 /*
  * DOS/DJGPP glut driver v1.3 for Mesa
  *
- *  Copyright (C) 2002 - Borca Daniel
+ *  Copyright (C) 2002 - Daniel Borca
  *  Email : dborca@yahoo.com
  *  Web   : http://www.geocities.com/dborca
  */
 #include "GL/dmesa.h"
 
 
+#define CLAMP(i) ((i) > 1.0F ? 1.0F : ((i) < 0.0F ? 0.0F : (i)))
 
-#define CLAMP(i) ((i) > 1.0 ? 1.0 : ((i) < 0.0 ? 0.0 : (i)))
 
-
-
-void APIENTRY glutSetColor (int ndx, GLfloat red, GLfloat green, GLfloat blue)
+void APIENTRY
+glutSetColor (int ndx, GLfloat red, GLfloat green, GLfloat blue)
 {
- if (g_display_mode & GLUT_INDEX) {
-    if ((ndx >= 0) && (ndx < (256 - RESERVED_COLORS))) {
-       DMesaSetCI(ndx, CLAMP(red), CLAMP(green), CLAMP(blue));
-    }
- }
  if (g_display_mode & GLUT_INDEX) {
+      if ((ndx >= 0) && (ndx < (256 - RESERVED_COLORS))) {
+         DMesaSetCI(ndx, CLAMP(red), CLAMP(green), CLAMP(blue));
+      }
  }
 }
 
 
-
-GLfloat APIENTRY glutGetColor (int ndx, int component)
+GLfloat APIENTRY
+glutGetColor (int ndx, int component)
 {
- return 0.0;
  return 0.0;
 }
 
 
-
-void APIENTRY glutCopyColormap (int win)
+void APIENTRY
+glutCopyColormap (int win)
 {
 }