summaryrefslogtreecommitdiff
authorschurig <schurig>2003-06-06 07:43:08 (UTC)
committer schurig <schurig>2003-06-06 07:43:08 (UTC)
commite7d5436f3379f45d9c165a2826b1f4ae5adaeea4 (patch) (unidiff)
treec05f10f573167fd2a0289715a6e7272cfa45fad4
parent4f987e0199430d04a4ac86007f0a79c631c2e611 (diff)
downloadopie-e7d5436f3379f45d9c165a2826b1f4ae5adaeea4.zip
opie-e7d5436f3379f45d9c165a2826b1f4ae5adaeea4.tar.gz
opie-e7d5436f3379f45d9c165a2826b1f4ae5adaeea4.tar.bz2
ramses stuff
better doc-strings setDisplayBrightness(), setDisplayContrast() and their ...Resolution() friends
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 )
558 * This sets the display brightness 558 * This sets the display brightness
559 *
560 * @param p The brightness to be set on a scale from 0 to 255
559 * @return success or failure 561 * @return success or failure
@@ -567,3 +569,4 @@ bool ODevice::setDisplayBrightness ( int p)
567/** 569/**
568 * @return return the max value for the brightness settings slider 570 * @return returns the number of steppings on the brightness slider
571 * in the Light-'n-Power settings.
569 */ 572 */
@@ -576,2 +579,3 @@ int ODevice::displayBrightnessResolution ( ) const
576 * This sets the display contrast 579 * This sets the display contrast
580 * @param p The contrast to be set on a scale from 0 to 255
577 * @return success or failure 581 * @return success or failure
@@ -2072,3 +2076,3 @@ bool Ramses::setDisplayContrast(int contr)
2072 2076
2073 // pwm0 contrast: 35 steps 65..100 (dunkel->hell) 2077 // pwm0 contrast: 20 steps 79..90 (dunkel->hell)
2074 2078
@@ -2078,3 +2082,3 @@ bool Ramses::setDisplayContrast(int contr)
2078 contr = 0; 2082 contr = 0;
2079 contr = 65 + (contr * 350 / 255); 2083 contr = 90 - (contr * 20 / 255);
2080 2084
@@ -2096,3 +2100,3 @@ int Ramses::displayContrastResolution() const
2096{ 2100{
2097 return 32; 2101 return 20;
2098} 2102}
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 {
131 * 131 *
132 *
133 * @short A small class for device specefic options 132 * @short A small class for device specefic options