mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
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:
parent
53f43a428f
commit
7654c7cffc
@ -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);
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user