diff options
Diffstat (limited to 'src/tdepowersave.cpp')
-rw-r--r-- | src/tdepowersave.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tdepowersave.cpp b/src/tdepowersave.cpp index b5db7a9..b57bfef 100644 --- a/src/tdepowersave.cpp +++ b/src/tdepowersave.cpp @@ -1155,7 +1155,7 @@ void tdepowersave::do_dimm() { // dimm the display down if (current > 0 && current > ((int)((float)hwinfo->getMaxBrightnessLevel()*((float)settings->autoDimmTo/100.0))-1)) { - hwinfo->setBrightness((current -1) , -1); + hwinfo->setBrightnessLevel(current -1); } else { AUTODIMM_Timer->stop(); @@ -1167,7 +1167,7 @@ void tdepowersave::do_dimm() { } else { // dimm the display up if (current < ((int)((float)hwinfo->getMaxBrightnessLevel()*((float)settings->brightnessValue/100.0))-1)) { - hwinfo->setBrightness((current +1) , -1); + hwinfo->setBrightnessLevel(current +1); } else { AUTODIMM_Timer->stop(); } @@ -1925,7 +1925,7 @@ void tdepowersave::setSchemeSettings(){ // --> set brightness settings if(settings->brightness && hwinfo->supportBrightness()) { // set to given values - hwinfo->setBrightness (-1, settings->brightnessValue); + hwinfo->setBrightnessPercentage(settings->brightnessValue); } // --> set CPU Freq settings @@ -2205,7 +2205,7 @@ void tdepowersave::handleActionCall ( action action, int value , bool checkAC, b TQTimer::singleShot(100, this, TQT_SLOT(do_freeze())); break; case BRIGHTNESS: - hwinfo->setBrightness( -1, value ); + hwinfo->setBrightnessPercentage(value); break; case CPUFREQ_POWERSAVE: hwinfo->setCPUFreq( POWERSAVE ); @@ -2953,7 +2953,7 @@ void tdepowersave::brightnessSet(int percentage) if (hwinfo->supportBrightness() && percentage >= 0 && percentage <= 100) { - hwinfo->setBrightness(-1, percentage); + hwinfo->setBrightnessPercentage(percentage); } kdDebugFuncOut(trace); |