ecore-evas: remove float comparison warnings for ecore_evas.c

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2016-12-20 10:28:39 -05:00
parent 2ae4c978f9
commit e8e59204b1
1 changed files with 3 additions and 2 deletions

View File

@ -2553,7 +2553,7 @@ _ecore_evas_fps_debug_rendertime_add(double t)
tim = ecore_time_get();
rtime += t;
frames++;
if (rlapse == 0.0)
if (EINA_DBL_CMP(rlapse, 0.0))
{
rlapse = tim;
flapse = frames;
@ -3855,7 +3855,8 @@ _pointer_position_set(Efl_Input_Pointer_Data *ev, Ecore_Evas *ee, int x, int y,
{
int fx, fy, fw, fh;
if (!mx && !my)
if ((EINA_DBL_CMP(mx, 0.0)) &&
(EINA_DBL_CMP(my, 0.0)))
{
mx = x;
my = y;