1
0
Fork 0

Fully revert opacity checks

This commit is contained in:
Emmanuele Bassi 2007-07-11 12:01:03 +00:00
parent 191d667a7c
commit c2345a5337

View file

@ -91,14 +91,14 @@ clutter_behaviour_alpha_notify (ClutterBehaviour *behave,
guint32 alpha_value)
{
ClutterBehaviourOpacityPrivate *priv;
guint8 delta, opacity;
guint8 opacity;
priv = CLUTTER_BEHAVIOUR_OPACITY (behave)->priv;
delta = priv->opacity_end - priv->opacity_start;
opacity = alpha_value * delta / CLUTTER_ALPHA_MAX_ALPHA;
opacity += priv->opacity_start;
opacity = alpha_value
* (priv->opacity_end - priv->opacity_start)
/ CLUTTER_ALPHA_MAX_ALPHA
+ priv->opacity_start;
CLUTTER_NOTE (BEHAVIOUR, "alpha: %i, opacity: %i", alpha_value, opacity);