From 7f2f736597490fd1592d7ed1f40e4abf824673c0 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Mon, 08 Dec 2003 15:17:16 +0000 Subject: Rot270 is not a Direction, but a Rotation. treke, is this fix correct? --- (limited to 'libopie') diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp index 5038cc9..e24e043 100644 --- a/libopie/odevice.cpp +++ b/libopie/odevice.cpp @@ -2039,7 +2039,7 @@ Transformation Zaurus::rotation ( ) const return rot; } -ODirection Zaurus::direction ( ) const +ODirection Zaurus::direction ( ) const { ODirection dir; int handle = 0; @@ -2048,13 +2048,13 @@ ODirection Zaurus::direction ( ) const case Model_Zaurus_SLC7x0: 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; } break; -- cgit v0.9.0.2