summaryrefslogtreecommitdiff
path: root/src/lib/ethumb/ethumb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ethumb/ethumb.c')
-rw-r--r--src/lib/ethumb/ethumb.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/ethumb/ethumb.c b/src/lib/ethumb/ethumb.c
index b66c3f41c2..6a552f632d 100644
--- a/src/lib/ethumb/ethumb.c
+++ b/src/lib/ethumb/ethumb.c
@@ -1151,8 +1151,7 @@ ethumb_calculate_aspect_from_ratio(Ethumb *e, float ia, int *w, int *h)
1151 *w = e->tw; 1151 *w = e->tw;
1152 *h = e->th; 1152 *h = e->th;
1153 1153
1154 if (ia == 0) 1154 if (EINA_DBL_CMP(ia, 0.0)) return;
1155 return;
1156 1155
1157 a = e->tw / (float)e->th; 1156 a = e->tw / (float)e->th;
1158 1157
@@ -1190,8 +1189,7 @@ ethumb_calculate_fill_from_ratio(Ethumb *e, float ia, int *fx, int *fy, int *fw,
1190 *fx = 0; 1189 *fx = 0;
1191 *fy = 0; 1190 *fy = 0;
1192 1191
1193 if (ia == 0) 1192 if (EINA_DBL_CMP(ia, 0.0)) return;
1194 return;
1195 1193
1196 a = e->tw / (float)e->th; 1194 a = e->tw / (float)e->th;
1197 1195
@@ -1736,7 +1734,7 @@ ethumb_dup(const Ethumb *e)
1736} 1734}
1737 1735
1738#define CHECK_DELTA(Param) \ 1736#define CHECK_DELTA(Param) \
1739 if (e1->Param != e2->Param) \ 1737 if (!EINA_DBL_CMP(e1->Param, e2->Param)) \
1740 return EINA_TRUE; 1738 return EINA_TRUE;
1741 1739
1742EAPI Eina_Bool 1740EAPI Eina_Bool