author | chicken <chicken> | 2005-03-11 15:01:26 (UTC) |
---|---|---|
committer | chicken <chicken> | 2005-03-11 15:01:26 (UTC) |
commit | 3dc7db665775377453f999a3eaee8c225af45a79 (patch) (unidiff) | |
tree | cec1afc6b0747d9cf2a0117144c158ca3cb18ef6 | |
parent | 5a5ced8a374777be21e05359bacb39da90fda8c8 (diff) | |
download | opie-3dc7db665775377453f999a3eaee8c225af45a79.zip opie-3dc7db665775377453f999a3eaee8c225af45a79.tar.gz opie-3dc7db665775377453f999a3eaee8c225af45a79.tar.bz2 |
jornada 56x device updates
-rw-r--r-- | libopie2/opiecore/device/odevice_jornada.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libopie2/opiecore/device/odevice_jornada.cpp b/libopie2/opiecore/device/odevice_jornada.cpp index bcde425..3acba03 100644 --- a/libopie2/opiecore/device/odevice_jornada.cpp +++ b/libopie2/opiecore/device/odevice_jornada.cpp | |||
@@ -149,25 +149,30 @@ void Jornada::initButtons() | |||
149 | b. setPixmap ( Resource::loadPixmap ( ib->pix )); | 149 | b. setPixmap ( Resource::loadPixmap ( ib->pix )); |
150 | b. setFactoryPresetPressedAction ( OQCopMessage ( makeChannel ( ib->fpressedservice ), ib->fpressedaction )); | 150 | b. setFactoryPresetPressedAction ( OQCopMessage ( makeChannel ( ib->fpressedservice ), ib->fpressedaction )); |
151 | b. setFactoryPresetHeldAction ( OQCopMessage ( makeChannel ( ib->fheldservice ), ib->fheldaction )); | 151 | b. setFactoryPresetHeldAction ( OQCopMessage ( makeChannel ( ib->fheldservice ), ib->fheldaction )); |
152 | 152 | ||
153 | d->m_buttons->append ( b ); | 153 | d->m_buttons->append ( b ); |
154 | } | 154 | } |
155 | } | 155 | } |
156 | reloadButtonMapping(); | 156 | reloadButtonMapping(); |
157 | } | 157 | } |
158 | 158 | ||
159 | int Jornada::displayBrightnessResolution() const | 159 | int Jornada::displayBrightnessResolution() const |
160 | { | 160 | { |
161 | return 255; | 161 | if ( d->m_model == Model_Jornada_56x ) |
162 | return 190; | ||
163 | else if (d->m_model == Model_Jornada_720 ) | ||
164 | return 255; | ||
165 | else | ||
166 | return 0; | ||
162 | } | 167 | } |
163 | 168 | ||
164 | 169 | ||
165 | bool Jornada::setDisplayBrightness( int bright ) | 170 | bool Jornada::setDisplayBrightness( int bright ) |
166 | { | 171 | { |
167 | bool res = false; | 172 | bool res = false; |
168 | 173 | ||
169 | if ( bright > 255 ) | 174 | if ( bright > 255 ) |
170 | bright = 255; | 175 | bright = 255; |
171 | if ( bright < 0 ) | 176 | if ( bright < 0 ) |
172 | bright = 0; | 177 | bright = 0; |
173 | 178 | ||