2007-07-11 Emmanuele Bassi <ebassi@openedhand.com>
* clutter/clutter-behaviour-opacity.c: Don't check direction in opacity.
This commit is contained in:
parent
f605136c39
commit
0b03e393f3
@ -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>
|
2007-07-11 Tomas Frydrych <tf@openedhand.com>
|
||||||
|
|
||||||
* clutter/clutter-fixed.h:
|
* clutter/clutter-fixed.h:
|
||||||
|
@ -95,14 +95,10 @@ clutter_behaviour_alpha_notify (ClutterBehaviour *behave,
|
|||||||
|
|
||||||
priv = CLUTTER_BEHAVIOUR_OPACITY (behave)->priv;
|
priv = CLUTTER_BEHAVIOUR_OPACITY (behave)->priv;
|
||||||
|
|
||||||
if (priv->opacity_end > priv->opacity_start)
|
delta = 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 = alpha_value * delta / CLUTTER_ALPHA_MAX_ALPHA;
|
||||||
opacity += ((priv->opacity_end > priv->opacity_start) ? priv->opacity_start
|
opacity += priv->opacity_start;
|
||||||
: priv->opacity_end);
|
|
||||||
|
|
||||||
CLUTTER_NOTE (BEHAVIOUR, "alpha: %i, opacity: %i", alpha_value, opacity);
|
CLUTTER_NOTE (BEHAVIOUR, "alpha: %i, opacity: %i", alpha_value, opacity);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user