Diffstat (limited to 'core/settings/light-and-power/light.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/settings/light-and-power/light.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/settings/light-and-power/light.cpp b/core/settings/light-and-power/light.cpp index da36826..0193a7b 100644 --- a/core/settings/light-and-power/light.cpp +++ b/core/settings/light-and-power/light.cpp | |||
@@ -201,5 +201,5 @@ void LightSettings::accept() | |||
201 | config.writeEntry( "Interval", interval_suspend->value() ); | 201 | config.writeEntry( "Interval", interval_suspend->value() ); |
202 | config.writeEntry( "Brightness", | 202 | config.writeEntry( "Brightness", |
203 | (brightness->maxValue()-brightness->value())*255/brightness->maxValue() ); | 203 | ( brightness->value() ) * 255 / brightness->maxValue() ); |
204 | 204 | ||
205 | // ac | 205 | // ac |
@@ -211,5 +211,5 @@ void LightSettings::accept() | |||
211 | config.writeEntry( "IntervalAC", interval_suspend_ac_3->value() ); | 211 | config.writeEntry( "IntervalAC", interval_suspend_ac_3->value() ); |
212 | config.writeEntry( "BrightnessAC", | 212 | config.writeEntry( "BrightnessAC", |
213 | (brightness_ac_3->maxValue() - brightness_ac_3->value())*255/brightness_ac_3->maxValue() ); | 213 | ( brightness_ac_3->value()) * 255 / brightness_ac_3->maxValue() ); |
214 | 214 | ||
215 | 215 | ||