e_config: add configured_output_resolution at the e_config
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 23 Apr 2019 04:59:20 +0000 (13:59 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 23 Apr 2019 06:52:50 +0000 (15:52 +0900)
Change-Id: Ica9e3ab3d24772039470e670d73a021d9fef2521

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

index 9c13946cdcc00164a1823a227c8945c1c0fff35a..e2112c232f04382c3d597013106a745506331161 100644 (file)
@@ -293,6 +293,9 @@ _e_config_edd_init(Eina_Bool old)
    E_CONFIG_VAL(D, T, comp_canvas_norender.use, UCHAR);
    E_CONFIG_VAL(D, T, qp_handler.use_alpha, UCHAR);
    E_CONFIG_VAL(D, T, qp_handler.alpha, INT);
+   E_CONFIG_VAL(D, T, configured_output_resolution.use, UCHAR);
+   E_CONFIG_VAL(D, T, configured_output_resolution.w, INT);
+   E_CONFIG_VAL(D, T, configured_output_resolution.h, INT);
 }
 
 static Eina_Bool
@@ -523,6 +526,7 @@ e_config_load(void)
    E_CONFIG_LIMIT(e_config->comp_canvas_norender.use, 0, 1);
    E_CONFIG_LIMIT(e_config->qp_handler.use_alpha, 0, 1);
    E_CONFIG_LIMIT(e_config->qp_handler.alpha, 0, 255);
+   E_CONFIG_LIMIT(e_config->configured_output_resolution.use, 0, 1);
 }
 
 E_API int
index ac4d92080b96b2ef60572c59c63f935cbd15e9ac..c94788ecbee4b2b685fbcc7776f8d3b44f102bdf 100644 (file)
@@ -214,6 +214,14 @@ struct _E_Config
       int           alpha; // alpha component (0:transparent, 255:opaque), only used when use_alpha is 1
    } qp_handler;
    Eina_Bool qp_add_on_desk_smart;
+
+   // Configured screen resolution
+   struct
+   {
+      unsigned char use; // use the configured screen resolution.
+      int w;             // width of the configured screen resolution.
+      int h;             // height of the configured screen resolution.
+   } configured_output_resolution;
 };
 
 struct _E_Config_Desklock_Background