summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/settings/light-and-power/light.cpp4
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
@@ -202,3 +202,3 @@ void LightSettings::accept()
config.writeEntry( "Brightness",
- (brightness->maxValue()-brightness->value())*255/brightness->maxValue() );
+ ( brightness->value() ) * 255 / brightness->maxValue() );
@@ -212,3 +212,3 @@ void LightSettings::accept()
config.writeEntry( "BrightnessAC",
- (brightness_ac_3->maxValue() - brightness_ac_3->value())*255/brightness_ac_3->maxValue() );
+ ( brightness_ac_3->value()) * 255 / brightness_ac_3->maxValue() );