From eaa6d25a946eae6c223e7156a33d27276ca6062e Mon Sep 17 00:00:00 2001 From: MyoungJune Park Date: Tue, 9 Oct 2012 17:05:45 +0900 Subject: [PATCH] added landscape mode --- src/setting.c | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/src/setting.c b/src/setting.c index 517ebe4..49f09be 100755 --- a/src/setting.c +++ b/src/setting.c @@ -219,32 +219,11 @@ static void setting_main_rotate(enum appcore_rm m, void *data) { SETTING_TRACE_BEGIN; setting_main_appdata *ad = data; - int r; if (ad == NULL || ad->win_main == NULL) - return 0; - -#if 0 - switch (m) { - case APPCORE_RM_PORTRAIT_NORMAL: - r = 0; - break; - case APPCORE_RM_PORTRAIT_REVERSE: - r = 180; - break; - case APPCORE_RM_LANDSCAPE_NORMAL: - r = 270; - break; - case APPCORE_RM_LANDSCAPE_REVERSE: - r = 90; - break; - default: - r = -1; - break; - } -#endif - if (r >= 0) - elm_win_rotation_with_resize_set(ad->win_main, r); + return; + + elm_win_rotation_with_resize_set(ad->win_main, m); } #endif -- 2.7.4