Update light.c

Dummy error :)
This commit is contained in:
Denis Butorin 2025-01-24 03:35:13 +03:00 committed by GitHub
parent 9457917ae4
commit 79e3060871
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,7 +39,7 @@ int main(int argc, char* argv[])
percent -= atoi(++arg);
else
percent = atoi(arg);
new_brightness = ceil((float) percent * 255 / 100);
new_brightness = ceil((float) percent * max_brightness / 100);
}
else {
if (arg[0] == '+')