Diffstat (limited to 'core/settings/light-and-power/light.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/settings/light-and-power/light.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp index e959603..fbea905 100644 --- a/core/settings/light-and-power/light.cpp +++ b/core/settings/light-and-power/light.cpp @@ -47,3 +47,4 @@ -extern int qpe_sysBrightnessSteps(); +#include <opie/odevice.h> + @@ -71,3 +72,3 @@ LightSettings::LightSettings( QWidget* parent, const char* name, WFlags fl ) LcdOffOnly->setChecked( config.readNumEntry("LcdOffOnly",0) != 0 ); - int maxbright = qpe_sysBrightnessSteps(); + int maxbright = ODevice::inst ( )-> displayBrightnessResolution ( ); initbright = config.readNumEntry("Brightness",255); |