summaryrefslogtreecommitdiff
path: root/src/lib/emotion/emotion_smart.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2017-01-06 09:57:46 -0800
committerCedric BAIL <cedric@osg.samsung.com>2017-01-06 15:58:46 -0800
commit8f1c071d6adbf6f8e2002eeeabdc7f3d7be9ef22 (patch)
tree17bddaa85bcdead8807053b009d1adf1c9eda71c /src/lib/emotion/emotion_smart.c
parentf9928b75c8c4a2e6c3f02aafb68c8a569a47ab04 (diff)
eina: rename EINA_{FLT,DBL}_CMP to EINA_{FLT,DBL}_EQ.
Diffstat (limited to 'src/lib/emotion/emotion_smart.c')
-rw-r--r--src/lib/emotion/emotion_smart.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/emotion/emotion_smart.c b/src/lib/emotion/emotion_smart.c
index 8add1227e..8ba6940 100644
--- a/src/lib/emotion/emotion_smart.c
+++ b/src/lib/emotion/emotion_smart.c
@@ -1540,8 +1540,8 @@ _emotion_video_pos_update(Evas_Object *obj, double pos, double len)
1540 int npos = 0, nlen = 0; 1540 int npos = 0, nlen = 0;
1541 1541
1542 E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME); 1542 E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME);
1543 if (!EINA_DBL_CMP(pos, sd->pos)) npos = 1; 1543 if (!EINA_DBL_EQ(pos, sd->pos)) npos = 1;
1544 if (!EINA_DBL_CMP(len, sd->len)) nlen = 1; 1544 if (!EINA_DBL_EQ(len, sd->len)) nlen = 1;
1545 sd->pos = pos; 1545 sd->pos = pos;
1546 sd->len = len; 1546 sd->len = len;
1547 if (npos) 1547 if (npos)
@@ -1573,8 +1573,8 @@ _emotion_frame_resize(Evas_Object *obj, int w, int h, double ratio)
1573 } 1573 }
1574 if (h > 0) tmp = (double)w / (double)h; 1574 if (h > 0) tmp = (double)w / (double)h;
1575 else tmp = 1.0; 1575 else tmp = 1.0;
1576 if (!EINA_DBL_CMP(ratio, tmp)) tmp = ratio; 1576 if (!EINA_DBL_EQ(ratio, tmp)) tmp = ratio;
1577 if (!EINA_DBL_CMP(tmp, sd->ratio)) 1577 if (!EINA_DBL_EQ(tmp, sd->ratio))
1578 { 1578 {
1579 sd->ratio = tmp; 1579 sd->ratio = tmp;
1580 changed = 1; 1580 changed = 1;
@@ -1619,7 +1619,7 @@ _emotion_open_done(Evas_Object *obj)
1619 E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME); 1619 E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME);
1620 sd->open = 1; 1620 sd->open = 1;
1621 1621
1622 if (!EINA_DBL_CMP(sd->remember_jump, 0.0)) 1622 if (!EINA_DBL_EQ(sd->remember_jump, 0.0))
1623 emotion_object_position_set(obj, sd->remember_jump); 1623 emotion_object_position_set(obj, sd->remember_jump);
1624 if (sd->remember_play != sd->play) 1624 if (sd->remember_play != sd->play)
1625 emotion_object_play_set(obj, sd->remember_play); 1625 emotion_object_play_set(obj, sd->remember_play);
@@ -1737,8 +1737,8 @@ _emotion_frame_refill(Evas_Object *obj, double w, double h)
1737 Efl_Canvas_Video_Data *sd; 1737 Efl_Canvas_Video_Data *sd;
1738 1738
1739 E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME); 1739 E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME);
1740 if ((!EINA_DBL_CMP(sd->fill.w, w)) || 1740 if ((!EINA_DBL_EQ(sd->fill.w, w)) ||
1741 (!EINA_DBL_CMP(sd->fill.h, h))) 1741 (!EINA_DBL_EQ(sd->fill.h, h)))
1742 { 1742 {
1743 Evas_Coord ow, oh; 1743 Evas_Coord ow, oh;
1744 1744