mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-18 23:07:56 -04:00
Resolves clamp is not a member of std error reintroduced in f8745221.
* Original issue in Debian Buster build https://gitlab.com/CalcProgrammer1/OpenRGB/-/jobs/3359116111#L207
This commit is contained in:
1 parent
085e1fca41
commit
04127cb201
1 file changed
+1
-1
@@ -699,7 +699,7 @@ bool OptionBrightness(std::vector<DeviceOptions>* current_devices, std::string a
|
||||
{
|
||||
DeviceOptions* currentDevOpts = ¤t_devices->at(i);
|
||||
|
||||
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;
|
||||
found = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user