-rw-r--r-- | core/launcher/main.cpp | 20 | ||||
-rw-r--r-- | packages | 1 |
2 files changed, 2 insertions, 19 deletions
diff --git a/core/launcher/main.cpp b/core/launcher/main.cpp index 1e5eb46..49b41d6 100644 --- a/core/launcher/main.cpp +++ b/core/launcher/main.cpp | |||
@@ -66,14 +66,11 @@ void initEnvironment( ) | |||
66 | QString lang = config.readEntry( "Language", getenv("LANG") ); | 66 | QString lang = config.readEntry( "Language", getenv("LANG") ); |
67 | if ( !lang.isNull() ) | 67 | if ( !lang.isNull() ) |
68 | setenv( "LANG", lang, 1 ); | 68 | setenv( "LANG", lang, 1 ); |
69 | |||
70 | } | 69 | } |
71 | 70 | ||
72 | 71 | ||
73 | int initApplication( int argc, char ** argv ) | 72 | int initApplication( int argc, char ** argv ) |
74 | { | 73 | { |
75 | struct ODevice *odev = ODevice::inst(); | ||
76 | |||
77 | initEnvironment( ); | 74 | initEnvironment( ); |
78 | 75 | ||
79 | #if !defined(QT_QWS_CASSIOPEIA) && !defined(QT_QWS_IPAQ) && !defined(QT_QWS_EBX) | 76 | #if !defined(QT_QWS_CASSIOPEIA) && !defined(QT_QWS_IPAQ) && !defined(QT_QWS_EBX) |
@@ -84,20 +81,7 @@ int initApplication( int argc, char ** argv ) | |||
84 | QWSServer::setDesktopBackground( QImage() ); | 81 | QWSServer::setDesktopBackground( QImage() ); |
85 | DesktopApplication a( argc, argv, QApplication::GuiServer ); | 82 | DesktopApplication a( argc, argv, QApplication::GuiServer ); |
86 | 83 | ||
87 | int rot; | 84 | ODevice::inst ( )-> setSoftSuspend ( true ); |
88 | switch ( odev-> rotation( ) ) { | ||
89 | case None: | ||
90 | rot = 0; | ||
91 | case Rot90: | ||
92 | rot = 90; | ||
93 | case Rot180: | ||
94 | rot = 180; | ||
95 | case Rot270: | ||
96 | rot = 270; | ||
97 | } | ||
98 | a.setDefaultRotation( rot ); | ||
99 | |||
100 | odev-> setSoftSuspend ( true ); | ||
101 | 85 | ||
102 | { // init backlight | 86 | { // init backlight |
103 | QCopEnvelope e("QPE/System", "setBacklight(int)" ); | 87 | QCopEnvelope e("QPE/System", "setBacklight(int)" ); |
@@ -140,7 +124,7 @@ int initApplication( int argc, char ** argv ) | |||
140 | 124 | ||
141 | delete d; | 125 | delete d; |
142 | 126 | ||
143 | odev-> setSoftSuspend ( false ); | 127 | ODevice::inst ( )-> setSoftSuspend ( false ); |
144 | 128 | ||
145 | return rv; | 129 | return rv; |
146 | } | 130 | } |
@@ -8,7 +8,6 @@ CONFIG_DIALUP noncore/unsupported/netsetup/dialup dialup.pro | |||
8 | CONFIG_DICTIONARY noncore/apps/dictionarydictionary.pro | 8 | CONFIG_DICTIONARY noncore/apps/dictionarydictionary.pro |
9 | CONFIG_GSMTOOL noncore/comm/gsmtoolgsmtool.pro | 9 | CONFIG_GSMTOOL noncore/comm/gsmtoolgsmtool.pro |
10 | CONFIG_KEYVIEW development/keyviewkeyview.pro | 10 | CONFIG_KEYVIEW development/keyviewkeyview.pro |
11 | CONFIG_ROTTEST development/rottestrottest.pro | ||
12 | CONFIG_LAN noncore/unsupported/netsetup/lanlan.pro | 11 | CONFIG_LAN noncore/unsupported/netsetup/lanlan.pro |
13 | CONFIG_LIB noncore/unsupported/opiemail/liblib.pro | 12 | CONFIG_LIB noncore/unsupported/opiemail/liblib.pro |
14 | CONFIG_LIBFFMPEG core/multimedia/opieplayer/libffmpeglibffmpeg.pro | 13 | CONFIG_LIBFFMPEG core/multimedia/opieplayer/libffmpeglibffmpeg.pro |