2007-07-11 Emmanuele Bassi <ebassi@openedhand.com>

* clutter/clutter-behaviour-opacity.c:
	Don't check direction in opacity.
This commit is contained in:
Emmanuele Bassi 2007-07-11 11:37:32 +00:00
parent f605136c39
commit 0b03e393f3
2 changed files with 7 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2007-07-11 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-behaviour-opacity.c:
Don't check direction in opacity.
2007-07-11 Tomas Frydrych <tf@openedhand.com>
* clutter/clutter-fixed.h:

View File

@ -95,14 +95,10 @@ clutter_behaviour_alpha_notify (ClutterBehaviour *behave,
priv = CLUTTER_BEHAVIOUR_OPACITY (behave)->priv;
if (priv->opacity_end > priv->opacity_start)
delta = priv->opacity_end - priv->opacity_start;
else
delta = priv->opacity_start - priv->opacity_end;
opacity = alpha_value * delta / CLUTTER_ALPHA_MAX_ALPHA;
opacity += ((priv->opacity_end > priv->opacity_start) ? priv->opacity_start
: priv->opacity_end);
opacity += priv->opacity_start;
CLUTTER_NOTE (BEHAVIOUR, "alpha: %i, opacity: %i", alpha_value, opacity);