summaryrefslogtreecommitdiff
path: root/src/glut/dos/color.c
diff options
context:
space:
mode:
authorDaniel Borca <dborca@users.sourceforge.net>2005-01-14 08:37:20 +0000
committerDaniel Borca <dborca@users.sourceforge.net>2005-01-14 08:37:20 +0000
commit7da875d55f6dc9f18e23dd8af9ae7f5782cd3a72 (patch)
treef14744a4eb497de9045a20726dbf2fdbf474d87b /src/glut/dos/color.c
parentf4bff83c3211297159e498c1115b993a5cba9b4b (diff)
changed coding style
Diffstat (limited to 'src/glut/dos/color.c')
-rw-r--r--src/glut/dos/color.c29
1 files changed, 14 insertions, 15 deletions
diff --git a/src/glut/dos/color.c b/src/glut/dos/color.c
index cfb2ff926a..c6033c2d56 100644
--- a/src/glut/dos/color.c
+++ b/src/glut/dos/color.c
@@ -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
*/
@@ -31,29 +31,28 @@
#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)
{
}