[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[core/efl] master 06/06: Call common rotation code before setting engine info



devilhorns pushed a commit to branch master.

commit d8ec30d7cf66bdd50caf0bc95b0e107f6caee76f
Author: Chris Michael <cp.michael@samsung.com>
Date:   Tue Sep 17 07:38:29 2013 +0100

    Call common rotation code before setting engine info
    
    NB: Part of Phab T359 fix
    
    Signed-off-by: Chris Michael <cp.michael@samsung.com>
---
 src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_egl.c | 4 ++--
 src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_shm.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_egl.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_egl.c
index 6337fab..9959c08 100644
--- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_egl.c
+++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_egl.c
@@ -365,6 +365,8 @@ _ecore_evas_wl_rotation_set(Ecore_Evas *ee, int rotation, int resize)
 
    if (ee->rotation == rotation) return;
 
+   _ecore_evas_wl_common_rotation_set(ee, rotation, resize);
+
    einfo = (Evas_Engine_Info_Wayland_Egl *)evas_engine_info_get(ee->evas);
    if (!einfo) return;
 
@@ -372,8 +374,6 @@ _ecore_evas_wl_rotation_set(Ecore_Evas *ee, int rotation, int resize)
 
    if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo))
      ERR("evas_engine_info_set() for engine '%s' failed.", ee->driver);
-
-   _ecore_evas_wl_common_rotation_set(ee, rotation, resize);
 }
 
 static void 
diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_shm.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_shm.c
index 32bcc8a..1e77a67 100644
--- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_shm.c
+++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_shm.c
@@ -359,6 +359,8 @@ _ecore_evas_wl_rotation_set(Ecore_Evas *ee, int rotation, int resize)
 
    if (ee->rotation == rotation) return;
 
+   _ecore_evas_wl_common_rotation_set(ee, rotation, resize);
+
    einfo = (Evas_Engine_Info_Wayland_Shm *)evas_engine_info_get(ee->evas);
    if (!einfo) return;
 
@@ -366,8 +368,6 @@ _ecore_evas_wl_rotation_set(Ecore_Evas *ee, int rotation, int resize)
 
    if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo))
      ERR("evas_engine_info_set() for engine '%s' failed.", ee->driver);
-
-   _ecore_evas_wl_common_rotation_set(ee, rotation, resize);
 }
 
 static void

--