-rw-r--r-- | libopie/odevice.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp index 5038cc9..e24e043 100644 --- a/libopie/odevice.cpp +++ b/libopie/odevice.cpp @@ -2040,5 +2040,5 @@ Transformation Zaurus::rotation ( ) const return rot; } -ODirection Zaurus::direction ( ) const +ODirection Zaurus::direction ( ) const { ODirection dir; @@ -2049,11 +2049,11 @@ ODirection Zaurus::direction ( ) const handle = ::open("/dev/apm_bios", O_RDWR|O_NONBLOCK); if (handle == -1) { - dir = Rot270; + dir = CW; } else { retval = ::ioctl(handle, SHARP_IOCTL_GET_ROTATION); ::close (handle); - if (retval == 2 ) + if (retval == 2 ) dir = CCW; - else + else dir = CW; } |