mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-01-16 19:17:49 -05:00
Resolves clamp is not a member of std error with Buster build.
* https://gitlab.com/CalcProgrammer1/OpenRGB/-/jobs/3359116111#L207
This commit is contained in:
2
cli.cpp
2
cli.cpp
@@ -637,7 +637,7 @@ bool OptionBrightness(int* currentDev, std::string argument, Options* options)
|
||||
}
|
||||
|
||||
DeviceOptions* currentDevOpts = GetDeviceOptionsForDevID(options, *currentDev);
|
||||
currentDevOpts->brightness = std::clamp(std::stoi(argument), 0, (int)brightness_percentage);
|
||||
currentDevOpts->brightness = std::min(std::max(std::stoi(argument), 0),(int)brightness_percentage);
|
||||
currentDevOpts->hasOption = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user