-rw-r--r-- | libopie2/opiecore/device/odevice_ipaq.cpp | 2 | ||||
-rw-r--r-- | libopie2/opiecore/device/odevice_mypal.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libopie2/opiecore/device/odevice_ipaq.cpp b/libopie2/opiecore/device/odevice_ipaq.cpp index 2d734a4..5272a3c 100644 --- a/libopie2/opiecore/device/odevice_ipaq.cpp +++ b/libopie2/opiecore/device/odevice_ipaq.cpp | |||
@@ -404,9 +404,9 @@ int iPAQ::displayBrightnessResolution() const | |||
404 | return 64; | 404 | return 64; |
405 | case Model_iPAQ_H5xxx: | 405 | case Model_iPAQ_H5xxx: |
406 | return 255; | 406 | return 255; |
407 | case Model_iPAQ_H191x: | 407 | case Model_iPAQ_H191x: |
408 | return 183; | 408 | return 7; |
409 | case Model_iPAQ_H1940: | 409 | case Model_iPAQ_H1940: |
410 | return 44; | 410 | return 44; |
411 | default: | 411 | default: |
412 | return 2; | 412 | return 2; |
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 | |||
@@ -200,10 +200,10 @@ void MyPal::playAlarmSound() | |||
200 | bool MyPal::setDisplayBrightness ( int bright ) | 200 | 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 | ||
209 | QString cmdline; | 209 | QString cmdline; |
@@ -227,9 +227,9 @@ bool MyPal::setDisplayBrightness ( int bright ) | |||
227 | int MyPal::displayBrightnessResolution() const | 227 | 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 | } |
235 | } | 235 | } |