summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/odevice.cpp12
-rw-r--r--libopie/odevice.h1
2 files changed, 8 insertions, 5 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp
index 160568b..f808960 100644
--- a/libopie/odevice.cpp
+++ b/libopie/odevice.cpp
@@ -558,2 +558,4 @@ bool ODevice::setDisplayStatus ( bool on )
* This sets the display brightness
+ *
+ * @param p The brightness to be set on a scale from 0 to 255
* @return success or failure
@@ -567,3 +569,4 @@ bool ODevice::setDisplayBrightness ( int p)
/**
- * @return return the max value for the brightness settings slider
+ * @return returns the number of steppings on the brightness slider
+ * in the Light-'n-Power settings.
*/
@@ -576,2 +579,3 @@ int ODevice::displayBrightnessResolution ( ) const
* This sets the display contrast
+ * @param p The contrast to be set on a scale from 0 to 255
* @return success or failure
@@ -2072,3 +2076,3 @@ bool Ramses::setDisplayContrast(int contr)
- // pwm0 contrast: 35 steps 65..100 (dunkel->hell)
+ // pwm0 contrast: 20 steps 79..90 (dunkel->hell)
@@ -2078,3 +2082,3 @@ bool Ramses::setDisplayContrast(int contr)
contr = 0;
- contr = 65 + (contr * 350 / 255);
+ contr = 90 - (contr * 20 / 255);
@@ -2096,3 +2100,3 @@ int Ramses::displayContrastResolution() const
{
- return 32;
+ return 20;
}
diff --git a/libopie/odevice.h b/libopie/odevice.h
index 6c4830e..0974e8d 100644
--- a/libopie/odevice.h
+++ b/libopie/odevice.h
@@ -131,3 +131,2 @@ enum ODirection {
*
- *
* @short A small class for device specefic options