discomfitor pushed a commit to branch enlightenment-0.18. http://git.enlightenment.org/core/enlightenment.git/commit/?id=084f44747703251b2d8a66cf35637db8c8768367
commit 084f44747703251b2d8a66cf35637db8c8768367 Author: Mike Blumenkrantz <[email protected]> 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 ca2b7d9..4e5ae12 100644 --- a/src/bin/e_backlight.c +++ b/src/bin/e_backlight.c @@ -209,7 +209,7 @@ e_backlight_level_set(E_Zone *zone, double val, double tim) 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()); ecore_event_add(E_EVENT_BACKLIGHT_CHANGE, NULL, NULL, NULL); bl_now = bl_val; --
