From: Neil Roberts Date: Wed, 5 Nov 2008 12:16:15 +0000 (+0000) Subject: * clutter/clutter-color.c (clutter_color_new): Remove CLAMP macros X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e6570be339cccae908cffefdf378f485a3ce3c49;p=profile%2Fivi%2Fclutter.git * 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. --- diff --git a/ChangeLog b/ChangeLog index ebb8d88..572da5d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-11-05 Neil Roberts + + * 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 * clutter/clutter-color.c: Update ClutterColor documentation as diff --git a/clutter/clutter-color.c b/clutter/clutter-color.c index 2d1d44d..411bb13 100644 --- a/clutter/clutter-color.c +++ b/clutter/clutter-color.c @@ -689,10 +689,10 @@ clutter_color_new (guint8 red, color = g_slice_new (ClutterColor); - color->red = CLAMP (red, 0, 255); - color->green = CLAMP (green, 0, 255); - color->blue = CLAMP (blue, 0, 255); - color->alpha = CLAMP (alpha, 0, 255); + color->red = red; + color->green = green; + color->blue = blue; + color->alpha = alpha; return color; }