mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
interval: Remove special casing for ClutterColor
ClutterColor registers a progress function on type initialization, so we don't need to special case it any more.
This commit is contained in:
parent
d5376bf317
commit
dcf2662616
@ -298,23 +298,6 @@ clutter_interval_real_compute_value (ClutterInterval *interval,
|
||||
break;
|
||||
|
||||
case G_TYPE_BOXED:
|
||||
if (value_type == CLUTTER_TYPE_COLOR)
|
||||
{
|
||||
const ClutterColor *ia, *ib;
|
||||
ClutterColor res = { 0, };
|
||||
|
||||
ia = clutter_value_get_color (initial);
|
||||
ib = clutter_value_get_color (final);
|
||||
|
||||
res.red = (factor * (ib->red - (gdouble) ia->red)) + ia->red;
|
||||
res.green = (factor * (ib->green - (gdouble) ia->green)) + ia->green;
|
||||
res.blue = (factor * (ib->blue - (gdouble) ia->blue)) + ia->blue;
|
||||
res.alpha = (factor * (ib->alpha - (gdouble) ia->alpha)) + ia->alpha;
|
||||
|
||||
clutter_value_set_color (value, &res);
|
||||
|
||||
retval = TRUE;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user