Hi, Here is a very small patch for elm_transit
Removed an unnecessary parameter. Please consider then apply it. Thanks.
Index: lib/elm_transit.c =================================================================== --- lib/elm_transit.c (revision 55979) +++ lib/elm_transit.c (working copy) @@ -2362,7 +2362,6 @@ struct _Elm_Transit_Effect_Rotation { - Eina_Bool cw; float from, to; }; @@ -2395,8 +2394,6 @@ evas_map_util_points_populate_from_object_full(map, obj, 0); degree = rotation->from + (float)(progress * rotation->to); - if (!rotation->cw) degree *= -1; - evas_object_geometry_get(obj, &x, &y, &w, &h); half_w = (float)w * 0.5; @@ -2411,7 +2408,7 @@ } static void * -_transit_effect_rotation_context_new(float from_degree, float to_degree, Eina_Bool cw) +_transit_effect_rotation_context_new(float from_degree, float to_degree) { Elm_Transit_Effect_Rotation *rotation; @@ -2420,7 +2417,6 @@ rotation->from = from_degree; rotation->to = to_degree - from_degree; - rotation->cw = cw; return rotation; } Index: lib/Elementary.h.in =================================================================== --- lib/Elementary.h.in (revision 55979) +++ lib/Elementary.h.in (working copy) @@ -2501,7 +2501,7 @@ EAPI void *elm_transit_effect_color_add(Elm_Transit *transit, unsigned int from_r, unsigned int from_g, unsigned int from_b, unsigned int from_a, unsigned int to_r, unsigned int to_g, unsigned int to_b, unsigned int to_a); EAPI void *elm_transit_effect_fade_add(Elm_Transit *transit); EAPI void *elm_transit_effect_blend_add(Elm_Transit *transit); - EAPI void *elm_transit_effect_rotation_add(Elm_Transit *transit, float from_degree, float to_degree, Eina_Bool cw); + EAPI void *elm_transit_effect_rotation_add(Elm_Transit *transit, float from_degree); EAPI void *elm_transit_effect_image_animation_add(Elm_Transit *transit, Eina_List *images); typedef struct _Elm_Store Elm_Store; Index: bin/test_transit.c =================================================================== --- bin/test_transit.c (revision 55979) +++ bin/test_transit.c (working copy) @@ -81,7 +81,7 @@ elm_transit_effect_color_add(trans, 100, 255, 100, 255, 200, 50, 200, 50); /* Rotation Effect */ - elm_transit_effect_rotation_add(trans, 0.0, 135.0, EINA_FALSE); + elm_transit_effect_rotation_add(trans, 0.0, 135.0); elm_transit_duration_set(trans, 5.0); elm_transit_go(trans);
------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel