e_config: add screen_rotation_pre & screen_rotation_setting 16/127316/1
authorBoram Park <boram1288.park@samsung.com>
Sun, 23 Apr 2017 03:40:37 +0000 (12:40 +0900)
committerBoram Park <boram1288.park@samsung.com>
Thu, 27 Apr 2017 04:43:50 +0000 (13:43 +0900)
Change-Id: Ia1a22a64746f02b807060571c16164867aa197e6

src/bin/e_config.c
src/bin/e_config.h

index 066c425..db88604 100644 (file)
@@ -253,6 +253,8 @@ _e_config_edd_init(Eina_Bool old)
 #ifdef _F_ZONE_WINDOW_ROTATION_
    E_CONFIG_VAL(D, T, wm_win_rotation, UCHAR);
 #endif
+   E_CONFIG_VAL(D, T, screen_rotation_pre, UINT);
+   E_CONFIG_VAL(D, T, screen_rotation_setting, UINT);
    E_CONFIG_VAL(D, T, use_cursor_timer, INT);
    E_CONFIG_VAL(D, T, cursor_timer_interval, INT);
    E_CONFIG_LIST(D, T, client_types, _e_config_client_type_edd);
@@ -455,6 +457,8 @@ e_config_load(void)
    E_CONFIG_LIMIT(e_config->xkb.delay_held_key_input_to_focus, 0,5000); // 5000(ms) == 5(s)
    E_CONFIG_LIMIT(e_config->keyboard.repeat_delay, -1, 1000); // 1 second
    E_CONFIG_LIMIT(e_config->keyboard.repeat_rate, -1, 1000); // 1 second
+   E_CONFIG_LIMIT(e_config->screen_rotation_pre, 0, 270);
+   E_CONFIG_LIMIT(e_config->screen_rotation_setting, 0, 270);
    E_CONFIG_LIMIT(e_config->use_cursor_timer, 0, 1);
    E_CONFIG_LIMIT(e_config->sleep_for_dri, 0, 1);
    E_CONFIG_LIMIT(e_config->create_wm_ready, 0, 1);
index bb23a25..39cde5f 100644 (file)
@@ -147,6 +147,8 @@ struct _E_Config
 #ifdef _F_ZONE_WINDOW_ROTATION_
    unsigned char wm_win_rotation;
 #endif
+   unsigned int screen_rotation_pre;
+   unsigned int screen_rotation_setting;
    int use_cursor_timer;
    int cursor_timer_interval;
    Eina_List *client_types;