ui/viewmanagement/statehandler/src/glxfullscreenstate.cpp
changeset 69 45459746d5e8
parent 50 a0f57508af73
--- a/ui/viewmanagement/statehandler/src/glxfullscreenstate.cpp	Mon Sep 20 12:39:08 2010 +0530
+++ b/ui/viewmanagement/statehandler/src/glxfullscreenstate.cpp	Mon Sep 27 15:13:20 2010 +0530
@@ -16,10 +16,12 @@
 */
 
 
+#include <hbmainwindow.h>
+#include <hbinstance.h>
 
-#include <glxfullscreenstate.h>
-#include <glxstatemanager.h>
-#include <glxcommandhandlers.hrh>
+#include "glxfullscreenstate.h"
+#include "glxstatemanager.h"
+#include "glxcommandhandlers.hrh"
 
 GlxFullScreenState::GlxFullScreenState(GlxStateManager *stateManager, GlxState *preState) : GlxState(GLX_FULLSCREENVIEW_ID, preState)
 {
@@ -63,7 +65,8 @@
     }    
     else if ( dir == BACKWARD_DIR ) {
         if ( preState->compare( GLX_GRIDVIEW_ID ) ) {
-            effect = FULLSCREEN_TO_GRID;
+            HbMainWindow *window = hbInstance->allMainWindows().first();
+            effect = window->orientation() == Qt::Vertical ? FULLSCREEN_TO_GRID_PORTRAIT : FULLSCREEN_TO_GRID ;
             viewEffect = LAUNCH_VIEW;
         }       
     }