mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-09-13 13:47:02 -04: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:
1 parent
ce5ab1ccf1
commit
1ff192bda2
1 file changed
+1
-1
@@ -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