config_libconfig: drop unnecessary warning

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2020-12-03 05:46:17 +00:00
parent bb54da0039
commit e1bed6a84b
No known key found for this signature in database
GPG Key ID: D3A4405BE6CC17F4
1 changed files with 1 additions and 1 deletions

View File

@ -590,7 +590,7 @@ char *parse_config_libconfig(options_t *opt, const char *config_file, bool *shad
// --max-brightness
if (config_lookup_float(&cfg, "max-brightness", &opt->max_brightness) &&
opt->use_damage) {
opt->use_damage && opt->max_brightness < 1) {
log_warn("max-brightness requires use-damage = false. Falling back to "
"1.0");
opt->max_brightness = 1.0;