bugfix: backlight double comparison now less likely to fail

This commit is contained in:
Mike Blumenkrantz 2014-01-21 17:08:49 -05:00 committed by Cedric BAIL
parent c1366d913f
commit 9faa5b3df8
1 changed files with 1 additions and 1 deletions

View File

@ -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;