From 5aee2afc7b8b5e63d2f72b91f41930a0fb260a28 Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Sat, 10 Feb 2018 09:20:24 +0100 Subject: [PATCH] rootston: allow scale < 1 as well Since we support fractional scale, having scale=0.5 can make sense (and, as far as I can tell, works fine) --- rootston/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rootston/config.c b/rootston/config.c index 31bde2b0..26cbd12d 100644 --- a/rootston/config.c +++ b/rootston/config.c @@ -281,7 +281,7 @@ static int config_ini_handler(void *user, const char *section, const char *name, oc->y = strtol(value, NULL, 10); } else if (strcmp(name, "scale") == 0) { oc->scale = strtof(value, NULL); - assert(oc->scale >= 1); + assert(oc->scale > 0); } else if (strcmp(name, "rotate") == 0) { if (strcmp(value, "normal") == 0) { oc->transform = WL_OUTPUT_TRANSFORM_NORMAL;