summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2013-09-17 07:38:29 +0100
committerChris Michael <cp.michael@samsung.com>2013-09-17 07:41:08 +0100
commitd8ec30d7cf66bdd50caf0bc95b0e107f6caee76f (patch)
tree2fe15ab819adb92347d6db69a1618ce754297e91
parent70db3bff95afc1b28d3fbb0cc92cf3c626b8c8dc (diff)
Call common rotation code before setting engine info
NB: Part of Phab T359 fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_egl.c4
-rw-r--r--src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_shm.c4
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 6337fabd06..9959c085ed 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)
365 365
366 if (ee->rotation == rotation) return; 366 if (ee->rotation == rotation) return;
367 367
368 _ecore_evas_wl_common_rotation_set(ee, rotation, resize);
369
368 einfo = (Evas_Engine_Info_Wayland_Egl *)evas_engine_info_get(ee->evas); 370 einfo = (Evas_Engine_Info_Wayland_Egl *)evas_engine_info_get(ee->evas);
369 if (!einfo) return; 371 if (!einfo) return;
370 372
@@ -372,8 +374,6 @@ _ecore_evas_wl_rotation_set(Ecore_Evas *ee, int rotation, int resize)
372 374
373 if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo)) 375 if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo))
374 ERR("evas_engine_info_set() for engine '%s' failed.", ee->driver); 376 ERR("evas_engine_info_set() for engine '%s' failed.", ee->driver);
375
376 _ecore_evas_wl_common_rotation_set(ee, rotation, resize);
377} 377}
378 378
379static void 379static 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 32bcc8a8b8..1e77a67c20 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)
359 359
360 if (ee->rotation == rotation) return; 360 if (ee->rotation == rotation) return;
361 361
362 _ecore_evas_wl_common_rotation_set(ee, rotation, resize);
363
362 einfo = (Evas_Engine_Info_Wayland_Shm *)evas_engine_info_get(ee->evas); 364 einfo = (Evas_Engine_Info_Wayland_Shm *)evas_engine_info_get(ee->evas);
363 if (!einfo) return; 365 if (!einfo) return;
364 366
@@ -366,8 +368,6 @@ _ecore_evas_wl_rotation_set(Ecore_Evas *ee, int rotation, int resize)
366 368
367 if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo)) 369 if (!evas_engine_info_set(ee->evas, (Evas_Engine_Info *)einfo))
368 ERR("evas_engine_info_set() for engine '%s' failed.", ee->driver); 370 ERR("evas_engine_info_set() for engine '%s' failed.", ee->driver);
369
370 _ecore_evas_wl_common_rotation_set(ee, rotation, resize);
371} 371}
372 372
373static void 373static void