1
0
Fork 0

Make cogl_color_init_from_4fv take a const array

The passed in array isn't written to so it's more convenient to use if
it is const.

Reviewed-by: Robert Bragg <robert@linux.intel.com>

(cherry picked from commit 87c02670107f00008611cbb0a8cfc97c8b6ea956)
This commit is contained in:
Neil Roberts 2012-10-19 17:21:35 +01:00 committed by Robert Bragg
parent 53f43a428f
commit 7654c7cffc
2 changed files with 2 additions and 2 deletions

View file

@ -108,7 +108,7 @@ cogl_color_set_from_4f (CoglColor *color,
void
cogl_color_init_from_4fv (CoglColor *color,
float *color_array)
const float *color_array)
{
_COGL_RETURN_IF_FAIL (color != NULL);

View file

@ -169,7 +169,7 @@ cogl_color_set_from_4f (CoglColor *color,
*/
void
cogl_color_init_from_4fv (CoglColor *color,
float *color_array);
const float *color_array);
/**
* cogl_color_get_red_byte: