forked from enlightenment/enlightenment
e backlight - fix updae fetching at end of balckight fade anim
this helps keep the bl gadget in sync with actual backlight
This commit is contained in:
parent
412095fe67
commit
217bc3347f
|
@ -133,6 +133,7 @@ e_backlight_level_set(E_Zone *zone, double val, double tim)
|
||||||
if (fabs(tim) < DBL_EPSILON)
|
if (fabs(tim) < DBL_EPSILON)
|
||||||
{
|
{
|
||||||
_e_backlight_set(zone, val);
|
_e_backlight_set(zone, val);
|
||||||
|
e_backlight_update();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// if (e_config->backlight.mode != E_BACKLIGHT_MODE_NORMAL) return;
|
// if (e_config->backlight.mode != E_BACKLIGHT_MODE_NORMAL) return;
|
||||||
|
@ -326,6 +327,7 @@ _bl_anim(void *data, double pos)
|
||||||
if (pos >= 1.0)
|
if (pos >= 1.0)
|
||||||
{
|
{
|
||||||
bl_anim = NULL;
|
bl_anim = NULL;
|
||||||
|
e_backlight_update();
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
|
|
Loading…
Reference in New Issue