forked from enlightenment/efl
efl_page_transition_scroll: removed unnecesary variable
This commit is contained in:
parent
99a55142b5
commit
f2ce776413
|
@ -96,8 +96,8 @@ _content_show(Efl_Page_Transition_Scroll_Data *pd,
|
||||||
|
|
||||||
EINA_LIST_FOREACH(pd->page_infos, list, pi)
|
EINA_LIST_FOREACH(pd->page_infos, list, pi)
|
||||||
{
|
{
|
||||||
if (pi->vis_page)
|
if ((pi == pd->head) || (pi == pd->tail)) continue;
|
||||||
{
|
|
||||||
tmp_id = (curr_page + pi->pos + cnt) % cnt;
|
tmp_id = (curr_page + pi->pos + cnt) % cnt;
|
||||||
|
|
||||||
if ((spd->loop == EFL_UI_PAGER_LOOP_DISABLED)
|
if ((spd->loop == EFL_UI_PAGER_LOOP_DISABLED)
|
||||||
|
@ -117,7 +117,6 @@ _content_show(Efl_Page_Transition_Scroll_Data *pd,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
//FIXME use ecore_job
|
//FIXME use ecore_job
|
||||||
static void
|
static void
|
||||||
|
@ -165,13 +164,11 @@ _page_info_geometry_change(Efl_Page_Transition_Scroll_Data *pd,
|
||||||
if (eina_rectangles_intersect(&pi->geometry, &pd->viewport) &&
|
if (eina_rectangles_intersect(&pi->geometry, &pd->viewport) &&
|
||||||
((pi->id != 0) && (pi->id != (pd->page_info_num - 1))))
|
((pi->id != 0) && (pi->id != (pd->page_info_num - 1))))
|
||||||
{
|
{
|
||||||
pi->vis_page = EINA_TRUE;
|
|
||||||
pi->visible = EINA_TRUE;
|
pi->visible = EINA_TRUE;
|
||||||
efl_canvas_object_clip_set(pi->obj, pd->foreclip);
|
efl_canvas_object_clip_set(pi->obj, pd->foreclip);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pi->vis_page = EINA_FALSE;
|
|
||||||
pi->visible = EINA_FALSE;
|
pi->visible = EINA_FALSE;
|
||||||
efl_canvas_object_clip_set(pi->obj, pd->backclip);
|
efl_canvas_object_clip_set(pi->obj, pd->backclip);
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,7 +66,6 @@ typedef struct _Page_Info
|
||||||
struct _Page_Info *prev, *next;
|
struct _Page_Info *prev, *next;
|
||||||
|
|
||||||
Eina_Bool visible;
|
Eina_Bool visible;
|
||||||
Eina_Bool vis_page;
|
|
||||||
|
|
||||||
} Page_Info;
|
} Page_Info;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue