Window : only support 0 degree & 180 degree 36/51936/1
authorJin Yoon <jinny.yoon@samsung.com>
Tue, 17 Nov 2015 11:06:59 +0000 (20:06 +0900)
committerJin Yoon <jinny.yoon@samsung.com>
Tue, 17 Nov 2015 11:06:59 +0000 (20:06 +0900)
Change-Id: I5b80f11a389005df57edf31e05b60e0e317850fd

TelegramTizen/src/telegramtizen.c

index 376f94a..471599a 100644 (file)
@@ -3346,8 +3346,8 @@ static void create_base_gui(appdata_s *ad)
        elm_app_base_scale_set(1.8);
 
        if (elm_win_wm_rotation_supported_get(ad->win)) {
-               int rots[4] = { 0, 90, 180, 270 };
-               elm_win_wm_rotation_available_rotations_set(ad->win, (const int *)(&rots), 4);
+               int rots[2] = {0, 180};
+               elm_win_wm_rotation_available_rotations_set(ad->win, (const int *)(&rots), sizeof(rots) / sizeof(int));
        }
        ad->target_direction = tg_get_device_orientation();
        char edj_path[PATH_MAX] = {0, };