mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-24 01:18:53 -04:00
More warning fixes
This commit is contained in:
1 parent
8f89583eb0
commit
21594063ca
2 files changed
+11
-10
No files matched your search
+9
-8
@@ -88,15 +88,16 @@ void RGBController_MSIKeyboard::DeviceUpdateLEDs()
|
||||
|
||||
for(size_t idx = 0; idx < colors_size; idx++)
|
||||
{
|
||||
ck[idx].time_frame = idx * 100 / colors_size;
|
||||
ck[idx].color.R = RGBGetRValue(Mode.colors[idx]) * Mode.brightness / 100;
|
||||
ck[idx].color.G = RGBGetGValue(Mode.colors[idx]) * Mode.brightness / 100;
|
||||
ck[idx].color.B = RGBGetBValue(Mode.colors[idx]) * Mode.brightness / 100;
|
||||
ck[idx].time_frame = (unsigned char)(idx * 100 / colors_size);
|
||||
ck[idx].color.R = RGBGetRValue(Mode.colors[idx]) * Mode.brightness / 100;
|
||||
ck[idx].color.G = RGBGetGValue(Mode.colors[idx]) * Mode.brightness / 100;
|
||||
ck[idx].color.B = RGBGetBValue(Mode.colors[idx]) * Mode.brightness / 100;
|
||||
}
|
||||
ck[colors_size].time_frame = 100;
|
||||
ck[colors_size].color.R = RGBGetRValue(Mode.colors[0]) * Mode.brightness / 100;
|
||||
ck[colors_size].color.G = RGBGetGValue(Mode.colors[0]) * Mode.brightness / 100;
|
||||
ck[colors_size].color.B = RGBGetBValue(Mode.colors[0]) * Mode.brightness / 100;
|
||||
|
||||
ck[colors_size].time_frame = 100;
|
||||
ck[colors_size].color.R = RGBGetRValue(Mode.colors[0]) * Mode.brightness / 100;
|
||||
ck[colors_size].color.G = RGBGetGValue(Mode.colors[0]) * Mode.brightness / 100;
|
||||
ck[colors_size].color.B = RGBGetBValue(Mode.colors[0]) * Mode.brightness / 100;
|
||||
|
||||
controller->SetMode(msi_mode, speed1, speed2, wave_direction, zone, ck);
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ void RGBController_PNYARGBEpicXGPU::DeviceUpdateLEDs()
|
||||
{
|
||||
for(std::size_t i = 0; i < leds.size(); i++)
|
||||
{
|
||||
UpdateSingleLED(i);
|
||||
UpdateSingleLED((int)i);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -173,4 +173,4 @@ void RGBController_PNYARGBEpicXGPU::DeviceUpdateMode()
|
||||
controller->SetZoneMode(PNY_GPU_REG_ZONE_ARROW, modes[active_mode].value, 0, 0xFF, 0, 0);
|
||||
DeviceUpdateLEDs();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user