summaryrefslogtreecommitdiff
path: root/src/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf.c')
-rw-r--r--src/conf.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/conf.c b/src/conf.c
index c8667f9..aab6a7a 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -81,12 +81,17 @@ HAPI struct conf g_conf = {
.debug_mode = 0,
.overwrite_content = 0,
.com_core_thread = 1,
- .use_xmonitor = 1,
+ .use_xmonitor = 0,
+
+ .scale_width_factor = 1.0f,
+ .scale_height_factor = 1.0f,
};
static void conf_update_size(void)
{
ecore_x_window_size_get(0, &g_conf.width, &g_conf.height);
+ g_conf.scale_width_factor = (double)g_conf.width / (double)BASE_W;
+ g_conf.scale_height_factor = (double)g_conf.height / (double)BASE_H;
}
static void use_xmonitor(char *buffer)