author | harlekin <harlekin> | 2003-03-25 23:06:12 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-03-25 23:06:12 (UTC) |
commit | aca404f0c049c5b1bace7e842e7e64b987f04616 (patch) (unidiff) | |
tree | 31c0722de0784b8e5c83d2fd5a93d39cb96f13a5 | |
parent | 8ee32661cc5086c2cc34c4587de9649cd290579d (diff) | |
download | opie-aca404f0c049c5b1bace7e842e7e64b987f04616.zip opie-aca404f0c049c5b1bace7e842e7e64b987f04616.tar.gz opie-aca404f0c049c5b1bace7e842e7e64b987f04616.tar.bz2 |
better interaction with the rotate app
-rw-r--r-- | core/applets/rotateapplet/rotate.cpp | 6 | ||||
-rw-r--r-- | core/applets/rotateapplet/rotate.h | 1 |
2 files changed, 3 insertions, 4 deletions
diff --git a/core/applets/rotateapplet/rotate.cpp b/core/applets/rotateapplet/rotate.cpp index 8f323d6..653c61f 100644 --- a/core/applets/rotateapplet/rotate.cpp +++ b/core/applets/rotateapplet/rotate.cpp | |||
@@ -43,3 +43,2 @@ RotateApplet::RotateApplet ( ) | |||
43 | m_native = true; | 43 | m_native = true; |
44 | m_startupRot = QPEApplication::defaultRotation(); | ||
45 | } | 44 | } |
@@ -92,7 +91,8 @@ void RotateApplet::activated ( ) | |||
92 | { | 91 | { |
92 | int currentRotation = QPEApplication::defaultRotation(); | ||
93 | int newRotation; | 93 | int newRotation; |
94 | if ( m_native == true ) { | 94 | if ( m_native == true ) { |
95 | newRotation = m_startupRot + 90; | 95 | newRotation = currentRotation + 90; |
96 | } else { | 96 | } else { |
97 | newRotation = m_startupRot; | 97 | newRotation = currentRotation - 90; |
98 | } | 98 | } |
diff --git a/core/applets/rotateapplet/rotate.h b/core/applets/rotateapplet/rotate.h index 11e2ec9..c4087f9 100644 --- a/core/applets/rotateapplet/rotate.h +++ b/core/applets/rotateapplet/rotate.h | |||
@@ -57,3 +57,2 @@ private: | |||
57 | bool m_native; | 57 | bool m_native; |
58 | int m_startupRot; | ||
59 | ulong ref; | 58 | ulong ref; |