mirror of
https://github.com/yshui/picom.git
synced 2024-11-11 13:51:02 -05:00
config_libconfig: drop unnecessary warning
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
bb54da0039
commit
e1bed6a84b
1 changed files with 1 additions and 1 deletions
|
@ -590,7 +590,7 @@ char *parse_config_libconfig(options_t *opt, const char *config_file, bool *shad
|
||||||
|
|
||||||
// --max-brightness
|
// --max-brightness
|
||||||
if (config_lookup_float(&cfg, "max-brightness", &opt->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 "
|
log_warn("max-brightness requires use-damage = false. Falling back to "
|
||||||
"1.0");
|
"1.0");
|
||||||
opt->max_brightness = 1.0;
|
opt->max_brightness = 1.0;
|
||||||
|
|
Loading…
Reference in a new issue