From a1aef9c0ebd6fe72073bd8c022c56a75c0f97fb9 Mon Sep 17 00:00:00 2001 From: "huiyu.eun" Date: Fri, 16 Jun 2017 16:03:48 +0900 Subject: [PATCH] [SDL_Tizen] Fix orientation issue Set rotation in _tizen_window_orientaiton_hint_callback function Change-Id: Id68e833897e99d65a41a351449a84a730b9788d1 Signed-off-by: huiyu.eun --- src/video/tizen/SDL_tizenwindow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video/tizen/SDL_tizenwindow.c b/src/video/tizen/SDL_tizenwindow.c index cf79c38..16d8aef 100755 --- a/src/video/tizen/SDL_tizenwindow.c +++ b/src/video/tizen/SDL_tizenwindow.c @@ -347,11 +347,12 @@ _tizen_window_orientaiton_hint_callback(void *userdata, const char *name, const if (j > 0) { if (j == 1) { - ecore_wl_window_rotation_preferred_rotation_set(window,wind->rotation); + ecore_wl_window_rotation_preferred_rotation_set(window, wind->rotation); }else { ecore_wl_window_rotation_available_rotations_set(window, (const int*)checked, j); } } + _tizen_rotate_update(wind); } void -- 2.7.4