forked from enlightenment/efl
Call common rotation code before setting engine info
NB: Part of Phab T359 fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
70db3bff95
commit
d8ec30d7cf
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue