forked from enlightenment/enlightenment
bugfix: backlight double comparison now less likely to fail
This commit is contained in:
parent
0f938c9b78
commit
3ccdd6ab32
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue