summaryrefslogtreecommitdiff
path: root/libopie2
authordrw <drw>2005-01-24 22:31:49 (UTC)
committer drw <drw>2005-01-24 22:31:49 (UTC)
commit3d4c2eb3932f024bd046e8c4ac747d147a823d63 (patch) (side-by-side diff)
treeab7bee60b86709ac0adb40aaebfefd12a60bf944 /libopie2
parentfa3041f9acfd171b62c0ab73cde8b9d0f0772a9c (diff)
downloadopie-3d4c2eb3932f024bd046e8c4ac747d147a823d63.zip
opie-3d4c2eb3932f024bd046e8c4ac747d147a823d63.tar.gz
opie-3d4c2eb3932f024bd046e8c4ac747d147a823d63.tar.bz2
Fix compile of odevice_zaurus.cpp
Diffstat (limited to 'libopie2') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_zaurus.cpp64
1 files changed, 33 insertions, 31 deletions
diff --git a/libopie2/opiecore/device/odevice_zaurus.cpp b/libopie2/opiecore/device/odevice_zaurus.cpp
index cbc7a24..2128d46 100644
--- a/libopie2/opiecore/device/odevice_zaurus.cpp
+++ b/libopie2/opiecore/device/odevice_zaurus.cpp
@@ -1,25 +1,25 @@
/*
-                 This file is part of the Opie Project
-              Copyright (C) The Opie Team <opie-devel@handhelds.org>
+ This file is part of the Opie Project
+ Copyright (C) The Opie Team <opie-devel@handhelds.org>
=. Copyright (C) 2003-2005 Michael 'Mickey' Lauer <mickey@Vanille.de>
.=l.
-           .>+-=
- _;:,     .>    :=|. This program is free software; you can
-.> <`_,   >  .   <= redistribute it and/or modify it under
-:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
-.="- .-=="i,     .._ License as published by the Free Software
- - .   .-<_>     .<> Foundation; either version 2 of the License,
-     ._= =}       : or (at your option) any later version.
-    .%`+i>       _;_.
-    .i_,=:_.      -<s. This program is distributed in the hope that
-     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
-    : ..    .:,     . . . without even the implied warranty of
-    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
-  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
-..}^=.=       =       ; Library General Public License for more
-++=   -.     .`     .: details.
- :     =  ...= . :.=-
- -.   .:....=;==+<; You should have received a copy of the GNU
-  -_. . .   )=.  = Library General Public License along with
-    --        :-=` this library; see the file COPYING.LIB.
+ .>+-=
+_;:, .> :=|. This program is free software; you can
+.> <`_, > . <= redistribute it and/or modify it under
+:`=1 )Y*s>-.-- : the terms of the GNU Library General Public
+.="- .-=="i, .._ License as published by the Free Software
+- . .-<_> .<> Foundation; either version 2 of the License,
+ ._= =} : or (at your option) any later version.
+ .%`+i> _;_.
+ .i_,=:_. -<s. This program is distributed in the hope that
+ + . -:. = it will be useful, but WITHOUT ANY WARRANTY;
+ : .. .:, . . . without even the implied warranty of
+ =_ + =;=|` MERCHANTABILITY or FITNESS FOR A
+ _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU
+..}^=.= = ; Library General Public License for more
+++= -. .` .: details.
+: = ...= . :.=-
+-. .:....=;==+<; You should have received a copy of the GNU
+ -_. . . )=. = Library General Public License along with
+ -- :-=` this library; see the file COPYING.LIB.
If not, write to the Free Software Foundation,
@@ -508,7 +508,8 @@ Transformation Zaurus::rotation() const
case Model_Zaurus_SLC3000: // fallthrough
- case Model_Zaurus_SLC7x0:
- OHingeStatus hs = readHingeSensor();
- if ( hs == CASE_PORTRAIT ) rot = Rot0;
- else if ( hs == CASE_UNKNOWN ) rot = Rot0;
- else rot = Rot270;
+ case Model_Zaurus_SLC7x0: {
+ OHingeStatus hs = readHingeSensor();
+ if ( hs == CASE_PORTRAIT ) rot = Rot0;
+ else if ( hs == CASE_UNKNOWN ) rot = Rot0;
+ else rot = Rot270;
+ }
break;
@@ -532,7 +533,8 @@ ODirection Zaurus::direction() const
case Model_Zaurus_SLC3000: // fallthrough
- case Model_Zaurus_SLC7x0:
- OHingeStatus hs = readHingeSensor();
- if ( hs == CASE_PORTRAIT ) dir = CCW;
- else if ( hs == CASE_UNKNOWN ) dir = CCW;
- else dir = CW;
+ case Model_Zaurus_SLC7x0: {
+ OHingeStatus hs = readHingeSensor();
+ if ( hs == CASE_PORTRAIT ) dir = CCW;
+ else if ( hs == CASE_UNKNOWN ) dir = CCW;
+ else dir = CW;
+ }
break;