forked from enlightenment/enlightenment
backlight no longer attempts to apply settings for dummy devices
SVN revision: 82626
This commit is contained in:
parent
9e8e755cdf
commit
d517d37535
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
* e_manager_comp_set() is no longer accessible by modules
|
* e_manager_comp_set() is no longer accessible by modules
|
||||||
* added option to disable comp effects on screen
|
* added option to disable comp effects on screen
|
||||||
|
* fixed bug where backlight settings would try to update dummy backlight devices
|
||||||
|
|
||||||
2013-01-10 Carsten Haitzler
|
2013-01-10 Carsten Haitzler
|
||||||
|
|
||||||
|
|
1
NEWS
1
NEWS
|
@ -95,3 +95,4 @@ Fixes:
|
||||||
* fixed bug where internal dialogs would not redraw after unfullscreening
|
* fixed bug where internal dialogs would not redraw after unfullscreening
|
||||||
* fixed bug where starting with a nonexistent config could cause a crash instead of simply restarting
|
* fixed bug where starting with a nonexistent config could cause a crash instead of simply restarting
|
||||||
* fixed window border hide bug where after iconification hides leave ghosts
|
* fixed window border hide bug where after iconification hides leave ghosts
|
||||||
|
* fixed bug where backlight settings would try to update dummy backlight devices
|
||||||
|
|
|
@ -515,12 +515,19 @@ _bl_sys_level_get(void)
|
||||||
|
|
||||||
maxval = atoi(str);
|
maxval = atoi(str);
|
||||||
eina_stringshare_del(str);
|
eina_stringshare_del(str);
|
||||||
if (maxval <= 0) maxval = 255;
|
if (maxval < 0) maxval = 255;
|
||||||
str = eeze_udev_syspath_get_sysattr(bl_sysval, "brightness");
|
str = eeze_udev_syspath_get_sysattr(bl_sysval, "brightness");
|
||||||
if (!str) return;
|
if (!str) return;
|
||||||
|
|
||||||
val = atoi(str);
|
val = atoi(str);
|
||||||
eina_stringshare_del(str);
|
eina_stringshare_del(str);
|
||||||
|
if ((!maxval) && (!val))
|
||||||
|
{
|
||||||
|
bl_val = 0;
|
||||||
|
sysmode = MODE_NONE;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (!maxval) maxval = 255;
|
||||||
if ((val >= 0) && (val <= maxval))
|
if ((val >= 0) && (val <= maxval))
|
||||||
bl_val = (double)val / (double)maxval;
|
bl_val = (double)val / (double)maxval;
|
||||||
// fprintf(stderr, "GET: %i/%i (%1.3f)\n", val, maxval, bl_val);
|
// fprintf(stderr, "GET: %i/%i (%1.3f)\n", val, maxval, bl_val);
|
||||||
|
|
Loading…
Reference in New Issue