summaryrefslogtreecommitdiff
path: root/core
Side-by-side diff
Diffstat (limited to 'core') (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/main.cpp20
1 files changed, 18 insertions, 2 deletions
diff --git a/core/launcher/main.cpp b/core/launcher/main.cpp
index 49b41d6..1e5eb46 100644
--- a/core/launcher/main.cpp
+++ b/core/launcher/main.cpp
@@ -67,4 +67,5 @@ void initEnvironment()
if ( !lang.isNull() )
setenv( "LANG", lang, 1 );
+
}
@@ -72,4 +73,6 @@ void initEnvironment()
int initApplication( int argc, char ** argv )
{
+ struct ODevice *odev = ODevice::inst();
+
initEnvironment();
@@ -82,5 +85,18 @@ int initApplication( int argc, char ** argv )
DesktopApplication a( argc, argv, QApplication::GuiServer );
- ODevice::inst ( )-> setSoftSuspend ( true );
+ int rot;
+ switch ( odev-> rotation( ) ) {
+ case None:
+ rot = 0;
+ case Rot90:
+ rot = 90;
+ case Rot180:
+ rot = 180;
+ case Rot270:
+ rot = 270;
+ }
+ a.setDefaultRotation( rot );
+
+ odev-> setSoftSuspend ( true );
{ // init backlight
@@ -125,5 +141,5 @@ int initApplication( int argc, char ** argv )
delete d;
- ODevice::inst ( )-> setSoftSuspend ( false );
+ odev-> setSoftSuspend ( false );
return rv;