mesa: minor clean-up on _mesa_unclamped_float_rgba_to_ubyte()
authorBrian Paul <brianp@vmware.com>
Wed, 14 Sep 2011 14:09:05 +0000 (08:09 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 14 Sep 2011 14:15:59 +0000 (08:15 -0600)
Add a comment and reformat to be under 80 columns.

src/mesa/main/colormac.h

index 923c5a37c3323eb30981fe8aff7ced0352bd08e2..4b7c3b4a0c24b285626c041b30274bf38d3231cb 100644 (file)
@@ -168,13 +168,19 @@ do {                                              \
    UNCLAMPED_FLOAT_TO_CHAN((dst)[3], (f)[3]);  \
 } while (0)
 
-static inline void _mesa_unclamped_float_rgba_to_ubyte(GLubyte dst[4], const GLfloat src[4])
+
+/**
+ * Convert four float values in [0,1] to ubytes in [0,255] with clamping.
+ */
+static inline void
+_mesa_unclamped_float_rgba_to_ubyte(GLubyte dst[4], const GLfloat src[4])
 {
    int i;
    for (i = 0; i < 4; i++)
       UNCLAMPED_FLOAT_TO_UBYTE(dst[i], src[i]);
 }
 
+
 /**
  * \name Generic color packing macros.  All inputs should be GLubytes.
  *