From e946ae5a30d4e6e367b05ac82fb96cd7083b7566 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Sun, 7 Aug 2022 10:53:59 +0100 Subject: Delay scaling of percentage values. The config file code now delays calculation of percentage values until `config_fix_percentages()` is called. This allows the config file to be parsed before output configuration is complete, thus allowing `--output` and `--late-keyboard-init` to be specified in the config file. --- src/config.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/config.h') diff --git a/src/config.h b/src/config.h index 65e4f4d..c8db6b4 100644 --- a/src/config.h +++ b/src/config.h @@ -4,6 +4,7 @@ #include "tofi.h" void config_load(struct tofi *tofi, const char *filename); -void apply_option(struct tofi *tofi, const char *option, const char *value); +void config_apply(struct tofi *tofi, const char *option, const char *value); +void config_fix_percentages(struct tofi *tofi); #endif /* TOFI_CONFIG_H */ -- cgit v1.2.3