From a350eb3a1e27aeeb08a01dbfe3452a0b57f78cf5 Mon Sep 17 00:00:00 2001 From: Ari Koivula Date: Mon, 7 Mar 2016 17:24:31 +0200 Subject: [PATCH] Fix --tiles to have the correct number of tiles. The tiles_width_count etc. actually mean "count minus one". --- src/cfg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cfg.c b/src/cfg.c index 28666437..9d8286ee 100644 --- a/src/cfg.c +++ b/src/cfg.c @@ -589,8 +589,8 @@ int kvz_config_parse(kvz_config *cfg, const char *name, const char *value) // Free split arrays incase they have already been set by another parameter. FREE_POINTER(cfg->tiles_width_split); FREE_POINTER(cfg->tiles_height_split); - cfg->tiles_width_count = width; - cfg->tiles_height_count = height; + cfg->tiles_width_count = width - 1; + cfg->tiles_height_count = height - 1; return 1; } else if OPT("wpp")