[fusion-commits] Animation plugin: Changes to 'master' (e1356fdac31df00b4e210679c380232b7eedced0)

cornelius at server.beryl-project.org cornelius at server.beryl-project.org
Mon Aug 6 06:34:43 CEST 2007


New commits:
commit e1356fdac31df00b4e210679c380232b7eedced0
Author: Erkin Bahceci <erkinbah at gmail.com>
Date:   Mon Aug 6 00:33:51 2007 -0400

    Fix Airplane path end point.


 airplane3d.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)


Modified: fusion/plugins/animation/airplane3d.c
===================================================================
--- fusion/plugins/animation/airplane3d.c
+++ fusion/plugins/animation/airplane3d.c
@@ -883,10 +883,16 @@ fxAirplane3DLinearAnimStepPolygon (CompWindow * w,
 	    aw->curWindowEvent == WindowEventClose)
 	{
 	    // flying path ends at icon/pointer
+
+	    int sign = 1;
+	    if (aw->curWindowEvent == WindowEventUnminimize ||
+		aw->curWindowEvent == WindowEventOpen)
+		sign = -1;
+
 	    icondiffx =
 		(((aw->icon.x + aw->icon.width / 2)
 		  - (p->centerPosStart.x +
-		     w->screen->width * .4 *
+		     sign * w->screen->width * .4 *
 		     sin (2 * -M_PI_2 * airplanePathLength))) *
 		 moveProgress5);
 	    aep->centerPosFly.y =


More information about the commits mailing list