summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/device/odevice_mypal.cpp
authorzecke <zecke>2005-11-02 20:08:42 (UTC)
committer zecke <zecke>2005-11-02 20:08:42 (UTC)
commit562ff5c89ae1da92172a086afc8c3ffb7eec23bd (patch) (unidiff)
tree1b95768a3215b4f74b6a2723cd4fa093fcd46d17 /libopie2/opiecore/device/odevice_mypal.cpp
parent1c35276ae800e8adfcca2ddb010a0fe8080754bd (diff)
downloadopie-562ff5c89ae1da92172a086afc8c3ffb7eec23bd.zip
opie-562ff5c89ae1da92172a086afc8c3ffb7eec23bd.tar.gz
opie-562ff5c89ae1da92172a086afc8c3ffb7eec23bd.tar.bz2
ODevice iPAQ h191x and MyPal Asus:
Patch by Pawel Kolodziejski to change the maximum brightnes for H191x and Asus MyPAL.
Diffstat (limited to 'libopie2/opiecore/device/odevice_mypal.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_mypal.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libopie2/opiecore/device/odevice_mypal.cpp b/libopie2/opiecore/device/odevice_mypal.cpp
index 45c70ae..da0272e 100644
--- a/libopie2/opiecore/device/odevice_mypal.cpp
+++ b/libopie2/opiecore/device/odevice_mypal.cpp
@@ -201,8 +201,8 @@ bool MyPal::setDisplayBrightness ( int bright )
201{ 201{
202 bool res = false; 202 bool res = false;
203 203
204 if ( bright > 220 ) 204 if ( bright > 255 )
205 bright = 220; 205 bright = 255;
206 if ( bright < 0 ) 206 if ( bright < 0 )
207 bright = 0; 207 bright = 0;
208 208
@@ -228,7 +228,7 @@ int MyPal::displayBrightnessResolution() const
228{ 228{
229 switch ( model()) { 229 switch ( model()) {
230 case Model_MyPal_716: 230 case Model_MyPal_716:
231 return 220; 231 return 7;
232 default: 232 default:
233 return OAbstractMobileDevice::displayBrightnessResolution(); 233 return OAbstractMobileDevice::displayBrightnessResolution();
234 } 234 }