e backlight - fix updae fetching at end of balckight fade anim
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 7 Jul 2014 14:51:42 +0000 (23:51 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Mon, 7 Jul 2014 14:53:46 +0000 (23:53 +0900)
this helps keep the bl gadget in sync with actual backlight

src/bin/e_backlight.c

index cbb3a96..9a20852 100644 (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;