From eb276a6663540849ef98819eeaa8f935a7e1b945 Mon Sep 17 00:00:00 2001 From: kergoth Date: Sat, 19 Apr 2003 18:06:17 +0000 Subject: Add note about c700 physical screen orientation handling. --- diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp index 29c8ad2..713cc90 100644 --- a/libopie/odevice.cpp +++ b/libopie/odevice.cpp @@ -1146,9 +1146,21 @@ void Zaurus::init ( ) d-> m_rotation = Rot0; break; case Model_Zaurus_SLC700: - /* note for C700, we must check the display rotation - * sensor to set an appropriate value - */ + bool flipstate = false; + // Note: need to 1) set flipstate based on physical screen orientation + // and 2) check to see if the user overrode the rotation direction + // using appearance, and if so, remove that item from the Config to + // ensure the rotate applet flips us back to the previous state. + if ( flipstate ) { + // 480x640 + d-> m_rotation = Rot0; + d-> m_direction = CW; + } else { + // 640x480 + d-> m_rotation = Rot270; + d-> m_direction = CCW; + } + break; case Model_Zaurus_SLB600: case Model_Zaurus_SL5500: case Model_Zaurus_SL5000: -- cgit v0.9.0.2