[libgd] gd-stack: Properly ease the animation



commit 968349c741670f8746204a9c60197575a7ddd85a
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Feb 28 17:52:59 2013 -0500

    gd-stack: Properly ease the animation

 libgd/gd-stack.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgd/gd-stack.c b/libgd/gd-stack.c
index ad39807..b108363 100644
--- a/libgd/gd-stack.c
+++ b/libgd/gd-stack.c
@@ -511,9 +511,9 @@ get_bin_window_x (GdStack *stack, GtkAllocation *allocation)
   if (priv->transition_pos < 1.0)
     {
       if (priv->transition_type == GD_STACK_TRANSITION_TYPE_SLIDE_LEFT)
-        x = allocation->width * ease_out_cubic (1 - priv->transition_pos);
+        x = allocation->width * (1 - ease_out_cubic (priv->transition_pos));
       if (priv->transition_type == GD_STACK_TRANSITION_TYPE_SLIDE_RIGHT)
-        x = -allocation->width * ease_out_cubic (1 - priv->transition_pos);
+        x = -allocation->width * (1 - ease_out_cubic (priv->transition_pos));
     }
 
   return x;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]