fix backlight init value

in the case where xrandr is not used, setting backlight to very dim on init
will result in the backlight remaining at a very dim level when the backlight
normal level is 1.0 since backlight values will not successfully update until
at least 0.05s after the main loop starts

ref T1333
This commit is contained in:
Mike Blumenkrantz 2015-07-22 13:56:19 -04:00
parent 818fcb01f4
commit 75fb072dc3
1 changed files with 1 additions and 4 deletions

View File

@ -65,10 +65,7 @@ e_backlight_init(void)
#endif
e_backlight_update();
if (!getenv("E_RESTART"))
{
e_backlight_level_set(NULL, 0.1, 0.0);
e_backlight_level_set(NULL, e_config->backlight.normal, 0.0);
}
e_backlight_level_set(NULL, e_config->backlight.normal, 0.0);
E_EVENT_BACKLIGHT_CHANGE = ecore_event_type_new();