Introduce fractional scaling

This commit is contained in:
emersion 2017-12-15 01:00:03 +01:00
parent 23fb663ea4
commit 51db087210
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
10 changed files with 24 additions and 20 deletions

View file

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