forked from enlightenment/enlightenment
properly multiply backlight timeout by seconds
SVN revision: 79230
This commit is contained in:
parent
c2ef62e4b5
commit
4e4db42904
|
@ -81,7 +81,7 @@ _apply_data(E_Config_Dialog *cfd __UNUSED__, E_Config_Dialog_Data *cfdata)
|
||||||
e_config->backlight.normal = cfdata->backlight_normal / 100.0;
|
e_config->backlight.normal = cfdata->backlight_normal / 100.0;
|
||||||
e_config->backlight.dim = cfdata->backlight_dim / 100.0;
|
e_config->backlight.dim = cfdata->backlight_dim / 100.0;
|
||||||
e_config->backlight.transition = cfdata->backlight_transition;
|
e_config->backlight.transition = cfdata->backlight_transition;
|
||||||
e_config->backlight.timer = cfdata->backlight_timeout;
|
e_config->backlight.timer = lround(cfdata->backlight_timeout * 60.);
|
||||||
|
|
||||||
e_backlight_mode_set(NULL, E_BACKLIGHT_MODE_NORMAL);
|
e_backlight_mode_set(NULL, E_BACKLIGHT_MODE_NORMAL);
|
||||||
e_backlight_level_set(NULL, e_config->backlight.normal, -1.0);
|
e_backlight_level_set(NULL, e_config->backlight.normal, -1.0);
|
||||||
|
|
Loading…
Reference in New Issue