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:
Carsten Haitzler 2014-07-07 23:51:42 +09:00
parent 412095fe67
commit 217bc3347f
1 changed files with 2 additions and 0 deletions

View File

@ -133,6 +133,7 @@ e_backlight_level_set(E_Zone *zone, double val, double tim)
if (fabs(tim) < DBL_EPSILON)
{
_e_backlight_set(zone, val);
e_backlight_update();
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)
{
bl_anim = NULL;
e_backlight_update();
return EINA_FALSE;
}
return EINA_TRUE;