author | kergoth <kergoth> | 2003-04-19 18:06:17 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-04-19 18:06:17 (UTC) |
commit | eb276a6663540849ef98819eeaa8f935a7e1b945 (patch) (unidiff) | |
tree | 7464e0858a367034f976088021ccec5953a0eddc | |
parent | 89ced5d0c4f4ce89a11333d80aac2f8b81d97233 (diff) | |
download | opie-eb276a6663540849ef98819eeaa8f935a7e1b945.zip opie-eb276a6663540849ef98819eeaa8f935a7e1b945.tar.gz opie-eb276a6663540849ef98819eeaa8f935a7e1b945.tar.bz2 |
Add note about c700 physical screen orientation handling.
-rw-r--r-- | libopie/odevice.cpp | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp index 29c8ad2..713cc90 100644 --- a/libopie/odevice.cpp +++ b/libopie/odevice.cpp | |||
@@ -1145,11 +1145,23 @@ void Zaurus::init ( ) | |||
1145 | case Model_Zaurus_SLA300: | 1145 | case Model_Zaurus_SLA300: |
1146 | d-> m_rotation = Rot0; | 1146 | d-> m_rotation = Rot0; |
1147 | break; | 1147 | break; |
1148 | case Model_Zaurus_SLC700: | 1148 | case Model_Zaurus_SLC700: |
1149 | /* note for C700, we must check the display rotation | 1149 | bool flipstate = false; |
1150 | * sensor to set an appropriate value | 1150 | // Note: need to 1) set flipstate based on physical screen orientation |
1151 | */ | 1151 | // and 2) check to see if the user overrode the rotation direction |
1152 | // using appearance, and if so, remove that item from the Config to | ||
1153 | // ensure the rotate applet flips us back to the previous state. | ||
1154 | if ( flipstate ) { | ||
1155 | // 480x640 | ||
1156 | d-> m_rotation = Rot0; | ||
1157 | d-> m_direction = CW; | ||
1158 | } else { | ||
1159 | // 640x480 | ||
1160 | d-> m_rotation = Rot270; | ||
1161 | d-> m_direction = CCW; | ||
1162 | } | ||
1163 | break; | ||
1152 | case Model_Zaurus_SLB600: | 1164 | case Model_Zaurus_SLB600: |
1153 | case Model_Zaurus_SL5500: | 1165 | case Model_Zaurus_SL5500: |
1154 | case Model_Zaurus_SL5000: | 1166 | case Model_Zaurus_SL5000: |
1155 | default: | 1167 | default: |