From b128f323bf902ae1f1b9acb2deb8d33d97815761 Mon Sep 17 00:00:00 2001 From: "huiyu.eun" Date: Fri, 23 Dec 2016 11:14:46 +0900 Subject: [PATCH] [SDL_Tizen] Delete oreientation callback Use pre-rotation. Change-Id: I5c36e65b232ccf508a26d85e5d87c1500abaf873 Signed-off-by: huiyu.eun --- src/core/tizen/SDL_tizen.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/tizen/SDL_tizen.c b/src/core/tizen/SDL_tizen.c index f38f481..9987bd7 100644 --- a/src/core/tizen/SDL_tizen.c +++ b/src/core/tizen/SDL_tizen.c @@ -104,10 +104,11 @@ _tizen_app_lang_changed(app_event_info_h event_info, void *user_data) return; } +/* +//APP_EVENT_DEVICE_ORIENTATION_CHANGED static void _tizen_app_orient_changed(app_event_info_h event_info, void *user_data) { - /*APP_EVENT_DEVICE_ORIENTATION_CHANGED*/ app_device_orientation_e orientation; app_event_get_device_orientation(event_info, &orientation); SDL_Log("Orientation Changed, Rotation Degree : %d", orientation); @@ -121,6 +122,7 @@ _tizen_app_orient_changed(app_event_info_h event_info, void *user_data) SDL_PushEvent(&event); return; } +*/ static void _tizen_app_region_changed(app_event_info_h event_info, void *user_data) @@ -223,7 +225,7 @@ SDL_tizen_app_init(int argc, char *argv[]) ui_app_add_event_handler(&handlers[APP_EVENT_LOW_BATTERY], APP_EVENT_LOW_BATTERY, _tizen_app_low_battery, NULL); ui_app_add_event_handler(&handlers[APP_EVENT_LOW_MEMORY], APP_EVENT_LOW_MEMORY, _tizen_app_low_memory, NULL); - ui_app_add_event_handler(&handlers[APP_EVENT_DEVICE_ORIENTATION_CHANGED], APP_EVENT_DEVICE_ORIENTATION_CHANGED, _tizen_app_orient_changed, NULL); +// ui_app_add_event_handler(&handlers[APP_EVENT_DEVICE_ORIENTATION_CHANGED], APP_EVENT_DEVICE_ORIENTATION_CHANGED, _tizen_app_orient_changed, NULL); ui_app_add_event_handler(&handlers[APP_EVENT_LANGUAGE_CHANGED], APP_EVENT_LANGUAGE_CHANGED, _tizen_app_lang_changed, NULL); ui_app_add_event_handler(&handlers[APP_EVENT_REGION_FORMAT_CHANGED], APP_EVENT_REGION_FORMAT_CHANGED, _tizen_app_region_changed, NULL); -- 2.7.4