diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-11-10 08:21:50 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-11-10 08:21:50 -0500 |
commit | 425713b83730a7b707ac5b0a325b8e37464a982c (patch) | |
tree | ef504e85918a36d1abc4e9b659abf000d453a164 /rootston/config.c | |
parent | ca3c373c18fa2c4edb2e3f46c74d50f1f571e72c (diff) | |
parent | aafb00a15fd84b6d40f2efa52333eea5633b14e5 (diff) |
Merge branch 'hidpi'
Diffstat (limited to 'rootston/config.c')
-rw-r--r-- | rootston/config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rootston/config.c b/rootston/config.c index dc7a4b1d..ff02ff1d 100644 --- a/rootston/config.c +++ b/rootston/config.c @@ -220,6 +220,7 @@ static int config_ini_handler(void *user, const char *section, const char *name, oc = calloc(1, sizeof(struct output_config)); oc->name = strdup(output_name); oc->transform = WL_OUTPUT_TRANSFORM_NORMAL; + oc->scale = 1; wl_list_insert(&config->outputs, &oc->link); } @@ -227,6 +228,9 @@ static int config_ini_handler(void *user, const char *section, const char *name, oc->x = strtol(value, NULL, 10); } else if (strcmp(name, "y") == 0) { oc->y = strtol(value, NULL, 10); + } else if (strcmp(name, "scale") == 0) { + oc->scale = strtol(value, NULL, 10); + assert(oc->scale >= 1); } else if (strcmp(name, "rotate") == 0) { if (strcmp(value, "normal") == 0) { oc->transform = WL_OUTPUT_TRANSFORM_NORMAL; |