Fix Rotation
authorChoi Munseok <ms47.choi@samsung.com>
Sun, 7 Apr 2013 06:01:57 +0000 (15:01 +0900)
committerChoi Munseok <ms47.choi@samsung.com>
Sun, 7 Apr 2013 06:01:57 +0000 (15:01 +0900)
Change-Id: I70b6a2e061a3e2c1cbdad10133cd2498ef0963c8
Signed-off-by: Choi Munseok <ms47.choi@samsung.com>
src/ui/FUi_ControlManager.cpp
src/ui/FUi_EcoreEvas.cpp

index 015c1af..e8a5aee 100644 (file)
@@ -563,8 +563,8 @@ _ControlManager::ActivateWindow(_Window& window)
                {
                        window.ChangeLayout(GetOrientation());
                        pEcoreEvas->RotateWindow(window, ::Convert(__orientationStatus));
-                       window.SetRotation(::Convert(__orientationStatus));
-                       window.Invalidate(true);
+//                     window.SetRotation(::Convert(__orientationStatus));
+//                     window.Invalidate(true);
 
                        pEcoreEvas->SetWindowPreferredRotation(window, ::Convert(__orientationStatus));
                }
index d411e96..da45e59 100644 (file)
@@ -2361,9 +2361,11 @@ _EcoreEvas::SetWindowRotationBounds(const _Window& window, int rotation, const T
                return;
        }
 
+       Rectangle winBounds = _CoordinateSystemUtils::Transform(bounds);
+
        Ecore_X_Window win = (Ecore_X_Window) ecore_evas_window_get(pLayer->GetEcoreEvas());
-       SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x] Set rotation bounds(rot = %d, %d, %d, %d, %d).", win, rotation, bounds.x, bounds.y, bounds.width, bounds.height);
-       ecore_x_e_window_rotation_geometry_set(win, rotation, bounds.x, bounds.y, bounds.width, bounds.height);
+       SysLog(NID_UI, "[Window Manager Rotation][Window : 0x%x] Set rotation bounds(rot = %d, %d, %d, %d, %d).", win, rotation, winBounds.x, winBounds.y, winBounds.width, winBounds.height);
+       ecore_x_e_window_rotation_geometry_set(win, rotation, winBounds.x, winBounds.y, winBounds.width, winBounds.height);
 }
 #endif