evas: remove float comparison warnings for evas_filter_mixin
authorChris Michael <cp.michael@samsung.com>
Tue, 20 Dec 2016 15:25:01 +0000 (10:25 -0500)
committerChris Michael <cp.michael@samsung.com>
Tue, 20 Dec 2016 15:25:51 +0000 (10:25 -0500)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/evas/canvas/evas_filter_mixin.c

index ba58838..58d479c 100644 (file)
@@ -506,9 +506,11 @@ _efl_canvas_filter_internal_efl_gfx_filter_filter_state_set(Eo *eo_obj, Evas_Fil
    Evas_Object_Protected_Data *obj = pd->obj;
 
    evas_object_async_block(obj);
-   if ((cur_state != pd->data->state.cur.name) || (cur_val != pd->data->state.cur.value) ||
-       (next_state != pd->data->state.next.name) || (next_val != pd->data->state.next.value) ||
-       (pos != pd->data->state.pos))
+   if ((cur_state != pd->data->state.cur.name) ||
+       (!EINA_DBL_CMP(cur_val, pd->data->state.cur.value)) ||
+       (next_state != pd->data->state.next.name) ||
+       (!EINA_DBL_CMP(next_val, pd->data->state.next.value)) ||
+       (!EINA_DBL_CMP(pos, pd->data->state.pos)))
      {
         Evas_Object_Filter_Data *fcow = FCOW_BEGIN(pd);
         fcow->changed = 1;