Merge pull request #622 from martinetd/smallscale

rootston: allow scale < 1 as well
This commit is contained in:
emersion 2018-02-10 11:27:46 +01:00 committed by GitHub
commit 039f112c31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -281,7 +281,7 @@ static int config_ini_handler(void *user, const char *section, const char *name,
oc->y = strtol(value, NULL, 10); oc->y = strtol(value, NULL, 10);
} else if (strcmp(name, "scale") == 0) { } else if (strcmp(name, "scale") == 0) {
oc->scale = strtof(value, NULL); oc->scale = strtof(value, NULL);
assert(oc->scale >= 1); assert(oc->scale > 0);
} else if (strcmp(name, "rotate") == 0) { } else if (strcmp(name, "rotate") == 0) {
if (strcmp(value, "normal") == 0) { if (strcmp(value, "normal") == 0) {
oc->transform = WL_OUTPUT_TRANSFORM_NORMAL; oc->transform = WL_OUTPUT_TRANSFORM_NORMAL;