summaryrefslogtreecommitdiff
path: root/core
authorharlekin <harlekin>2002-10-23 15:46:15 (UTC)
committer harlekin <harlekin>2002-10-23 15:46:15 (UTC)
commit748f658f5102a50502cd060d50b35fded71356c3 (patch) (side-by-side diff)
tree07ba617972f63727cbe7eb64d6b9f62c7ba99fd9 /core
parentd3c2817cea75b9b84ea02a102e7048abf109f848 (diff)
downloadopie-748f658f5102a50502cd060d50b35fded71356c3.zip
opie-748f658f5102a50502cd060d50b35fded71356c3.tar.gz
opie-748f658f5102a50502cd060d50b35fded71356c3.tar.bz2
save values right
Diffstat (limited to 'core') (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
@@ -200,7 +200,7 @@ void LightSettings::accept()
config.writeEntry( "Interval_LightOff", interval_lightoff->value() );
config.writeEntry( "Interval", interval_suspend->value() );
config.writeEntry( "Brightness",
- (brightness->maxValue()-brightness->value())*255/brightness->maxValue() );
+ ( brightness->value() ) * 255 / brightness->maxValue() );
// ac
config.writeEntry( "DimAC", (int)screensaver_dim_ac_3->isChecked() );
@@ -210,7 +210,7 @@ void LightSettings::accept()
config.writeEntry( "Interval_LightOffAC", interval_lightoff_ac_3->value() );
config.writeEntry( "IntervalAC", interval_suspend_ac_3->value() );
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() );
// only make ipaq light sensor entries in config file if on an ipaq