Fix the Rotation Unknown case
authorChoi Munseok <ms47.choi@samsung.com>
Fri, 19 Apr 2013 11:39:12 +0000 (20:39 +0900)
committerChoi Munseok <ms47.choi@samsung.com>
Fri, 19 Apr 2013 11:39:12 +0000 (20:39 +0900)
Change-Id: Icb4fafd21d5df028658a8fa39dad31961af06674
Signed-off-by: Choi Munseok <ms47.choi@samsung.com>
src/ui/FUi_ControlManager.cpp

index 52ff8e6..b20cf8c 100644 (file)
@@ -932,6 +932,20 @@ _ControlManager::GetScreenRotation(void) const
                        case ROTATION_EVENT_270:
                                device_rotation = 90;
                                break;
+                       case ROTATION_UNKNOWN:
+                               {
+                                       _Window* pCurrentFrame = GetCurrentFrame();
+                                       if (pCurrentFrame)
+                                       {
+                                               _EcoreEvas* pEcoreEvas = ::GetEcoreEvasMgr()->GetEcoreEvas();
+                                               if (pEcoreEvas)
+                                               {
+                                                       SysLog(NID_UI, "[Window Manager Rotation] ROTATION_UNKNOWN");
+                                                       device_rotation = pEcoreEvas->GetWindowRotation(*pCurrentFrame);
+                                               }
+                                       }
+                               }
+                               break;
                        default:
                                break;
                        }