added landscape mode
authorMyoungJune Park <mj2004.park@samsung.com>
Tue, 9 Oct 2012 08:05:45 +0000 (17:05 +0900)
committerMyoungJune Park <mj2004.park@samsung.com>
Tue, 9 Oct 2012 08:05:45 +0000 (17:05 +0900)
src/setting.c

index 517ebe47f9ae492bf195b03c4f19bce27b5e4348..49f09be4af1372a7302758c81647a090c7423143 100755 (executable)
@@ -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