Fully revert opacity checks
This commit is contained in:
parent
191d667a7c
commit
c2345a5337
1 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue