cedric pushed a commit to branch enlightenment-0.17.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=9faa5b3df8dd0fd4a8f362385d74c67435be1505

commit 9faa5b3df8dd0fd4a8f362385d74c67435be1505
Author: Mike Blumenkrantz <zm...@samsung.com>
Date:   Tue Jan 21 17:08:49 2014 -0500

    bugfix: backlight double comparison now less likely to fail
---
 src/bin/e_backlight.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/e_backlight.c b/src/bin/e_backlight.c
index 65d1461..62975eb 100644
--- a/src/bin/e_backlight.c
+++ b/src/bin/e_backlight.c
@@ -207,7 +207,7 @@ e_backlight_level_set(E_Zone *zone, double val, double tim)
    // transition time
    if (val < 0.0) val = 0.0;
    else if (val > 1.0) val = 1.0;
-   if ((val == bl_val) && (!bl_anim)) return;
+   if ((fabs(val - bl_val) < DBL_EPSILON) && (!bl_anim)) return;
    if (!zone) zone = e_util_zone_current_get(e_manager_current_get());
    bl_now = bl_val;
    bl_val = val;

-- 


Reply via email to