mirror of
https://github.com/brl/mutter.git
synced 2025-02-14 12:24:09 +00:00
* clutter/clutter-color.c (clutter_color_new): Remove CLAMP macros
around the component parameters because they are guint8 anyway so the CLAMP is redundant and it causes a warning.
This commit is contained in:
parent
33c03448e5
commit
e6570be339
@ -1,3 +1,9 @@
|
|||||||
|
2008-11-05 Neil Roberts <neil@linux.intel.com>
|
||||||
|
|
||||||
|
* clutter/clutter-color.c (clutter_color_new): Remove CLAMP macros
|
||||||
|
around the component parameters because they are guint8 anyway so
|
||||||
|
the CLAMP is redundant and it causes a warning.
|
||||||
|
|
||||||
2008-11-04 Thomas Wood <thomas@linux.intel.com>
|
2008-11-04 Thomas Wood <thomas@linux.intel.com>
|
||||||
|
|
||||||
* clutter/clutter-color.c: Update ClutterColor documentation as
|
* clutter/clutter-color.c: Update ClutterColor documentation as
|
||||||
|
@ -689,10 +689,10 @@ clutter_color_new (guint8 red,
|
|||||||
|
|
||||||
color = g_slice_new (ClutterColor);
|
color = g_slice_new (ClutterColor);
|
||||||
|
|
||||||
color->red = CLAMP (red, 0, 255);
|
color->red = red;
|
||||||
color->green = CLAMP (green, 0, 255);
|
color->green = green;
|
||||||
color->blue = CLAMP (blue, 0, 255);
|
color->blue = blue;
|
||||||
color->alpha = CLAMP (alpha, 0, 255);
|
color->alpha = alpha;
|
||||||
|
|
||||||
return color;
|
return color;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user