elementary/transit - fix elm_transit image animation that last few frame are skipped

SVN revision: 78233
This commit is contained in:
ChunEon Park 2012-10-19 07:46:33 +00:00
parent 8f818f22ad
commit d8c7c7ec15
3 changed files with 14 additions and 9 deletions

View File

@ -631,5 +631,8 @@
it can be scroll. And the end of the item is fitted on the end of the viewport. it can be scroll. And the end of the item is fitted on the end of the viewport.
2012-10-19 Tae-Hwan Kim (Bluezery) 2012-10-19 Tae-Hwan Kim (Bluezery)
* Fixed wrong_calc_job parameter. * Fixed wrong_calc_job parameter.
2012-10-19 ChunEon Park (Hermet)
* Fix elm_transit image animation which last few frames are skipped.

View File

@ -45,6 +45,7 @@ Fixes:
* Fix genlist reorder mode item not being resized on genlist resize. * Fix genlist reorder mode item not being resized on genlist resize.
* Fix on_focus_region() issue. * Fix on_focus_region() issue.
* Fixed gengrid wrong_calc_job parameter. * Fixed gengrid wrong_calc_job parameter.
* Fix elm_transit image animation that last few frames are skipped.
Removals: Removals:

View File

@ -2313,15 +2313,16 @@ _transit_effect_image_animation_op(Elm_Transit_Effect *effect, Elm_Transit *tran
type = eina_stringshare_add("elm_icon"); type = eina_stringshare_add("elm_icon");
len = eina_list_count(image_animation->images); len = eina_list_count(image_animation->images);
if (len)
if (!len) count = floor(progress * len);
else count = floor(progress * (len - 1));
EINA_LIST_FOREACH(transit->objs, elist, obj)
{ {
if (elm_widget_type_check(obj, type, __func__)) count = floor(progress * len);
elm_image_file_set(obj, EINA_LIST_FOREACH(transit->objs, elist, obj)
eina_list_nth(image_animation->images, count), NULL); {
if (elm_widget_type_check(obj, type, __func__))
elm_image_file_set(obj,
eina_list_nth(image_animation->images, count),
NULL);
}
} }
eina_stringshare_del(type); eina_stringshare_del(type);