efl_ui_spotlight: fix warning of implicit conversion of floating point

The result of integral division is converted into floating point.
To fix the warning by assigning the result to integer variable, type
cast is done.
This commit is contained in:
Jaehyun Cho 2019-09-09 14:23:26 +09:00
parent f4d9188ca7
commit 1ecaf6fa02
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ _apply_box_properties(Eo *obj, Efl_Ui_Spotlight_Manager_Scroll_Data *pd)
double diff = i - current_pos;
Efl_Gfx_Entity *elem = efl_pack_content_get(pd->container, i);
geometry.x = (group_pos.x + group_pos.w/2)-(pd->page_size.w/2 - diff*pd->page_size.w);
geometry.x = (int)((group_pos.x + group_pos.w/2)-(pd->page_size.w/2 - diff*pd->page_size.w));
if (!eina_rectangles_intersect(&geometry.rect, &group_pos.rect))
{
efl_canvas_object_clipper_set(elem, pd->backclip);