Diffstat (limited to 'libopie2/opiecore/device/odevice_zaurus.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiecore/device/odevice_zaurus.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/libopie2/opiecore/device/odevice_zaurus.cpp b/libopie2/opiecore/device/odevice_zaurus.cpp index a59e799..7377965 100644 --- a/libopie2/opiecore/device/odevice_zaurus.cpp +++ b/libopie2/opiecore/device/odevice_zaurus.cpp @@ -518,2 +518,3 @@ Transformation Zaurus::rotation() const { + qDebug( "Zaurus::rotation()" ); Transformation rot; @@ -522,4 +523,9 @@ Transformation Zaurus::rotation() const case Model_Zaurus_SLC3000: // fallthrough - case Model_Zaurus_SLC7x0: { - OHingeStatus hs = readHingeSensor(); + case Model_Zaurus_SLC7x0: + { + OHingeStatus hs = readHingeSensor(); + qDebug( "Zaurus::rotation() - hinge sensor = %d", (int) hs ); + + if ( m_embedix ) + { if ( hs == CASE_PORTRAIT ) rot = Rot0; @@ -528,2 +534,9 @@ Transformation Zaurus::rotation() const } + else + { + if ( hs == CASE_PORTRAIT ) rot = Rot270; + else if ( hs == CASE_UNKNOWN ) rot = Rot0; + else rot = Rot0; + } + } break; |