bugfix: backlight double comparison now less likely to fail

This commit is contained in:
Mike Blumenkrantz 2014-01-21 17:08:49 -05:00
parent 0f938c9b78
commit 3ccdd6ab32
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,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 == e_bl_val) && (!bl_anim)) return;
if ((fabs(val - e_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 = e_bl_val;