Fixed some warnings

This commit is contained in:
Cooper Hall 2023-03-11 23:25:26 +00:00 committed by Adam Honse
parent b0b20b9f06
commit 45be4329c5
10 changed files with 29 additions and 31 deletions

View file

@ -1046,7 +1046,7 @@ void ApplyOptions(DeviceOptions& options, std::vector<RGBController *>& rgb_cont
| supports that colour mode then swich to it before |
| evaluating if a colour needs to be set |
\*---------------------------------------------------------*/
if((options.brightness >= 0) && (device->modes[mode].flags & MODE_FLAG_HAS_BRIGHTNESS))
if((device->modes[mode].flags & MODE_FLAG_HAS_BRIGHTNESS))
{
unsigned int new_brightness = device->modes[mode].brightness_max - device->modes[mode].brightness_min;
new_brightness *= options.brightness;